Function at 0x495f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov ebx, ecx
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x78], eax
mov edi, dword [0x642b20]
test edi, edi
je 0x496490
test byte [edi], 0x19
jne 0x4964ac
xor edi, edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 0x401
je 0x495fe3
cmp eax, 0x12
jne 0x495ff1
cmp byte [ebx + 0x14], 0
mov esi, dword [esp + 0x34]
je 0x496188
mov eax, dword [ebx + 8]
mov byte [eax + 4], 1
xor ebx, ebx
jmp 0x496448
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x10]
je 0x4961c7
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
cmp eax, dword [ebx + 0x30]
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ecx
je 0x496085
mov dword [esp + 0x58], ecx
lea eax, [ebx + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x50]
mov dword [eax + 4], ecx
mov dword [ebx + 0x38], ecx
mov dword [esp + 0x5c], 0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
sub ecx, eax
sar ecx, 2
mov edx, ebx
xor ebx, ebx
cmp dword [edx + 0x40], 1
mov esi, 0
sbb esi, esi
or esi, ecx
mov dword [esp + 0x60], esi
cmp ecx, esi
cmovae ecx, esi
test ecx, ecx
je 0x496099
cmp dword [eax], 0
jne 0x496099
mov edx, 1
nop dword [eax]
mov ebx, edx
mov dword [esp + 0x5c], edx
cmp ecx, edx
je 0x496099
lea edx, [ebx + 1]
cmp dword [eax + ebx*4], 0
je 0x496070
jmp 0x496099
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
xor esi, esi
xor ebx, ebx
mov edx, dword [esp + 0x58]
test edx, edx
je 0x49623e
mov ecx, dword [edx]
mov edi, dword [edx + 4]
mov eax, edi
sub eax, ecx
sar eax, 2
cmp eax, esi
cmovae eax, esi
cmp ebx, eax
jne 0x49611d
lea ebx, [edx + 4]
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 0xc]
jne 0x49620e
cmp ecx, edi
je 0x4961d5
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp dword [ecx], 0
je 0x4961d5
add ecx, 4
cmp edi, ecx
jne 0x4960e0
mov edx, edi
jmp 0x496208
mov eax, dword [esp + 0x60]
mov ecx, dword [edx]
mov edi, dword [edx + 4]
mov esi, edi
sub esi, ecx
sar esi, 2
cmp esi, eax
cmovae esi, eax
mov ebx, dword [esp + 0x5c]
cmp ebx, esi
je 0x4960ba
mov ecx, dword [ecx + ebx*4]
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [eax]
sub esp, 4
mov edx, dword [esp + 0x58]
test edx, edx
je 0x49623e
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
lea ebx, [eax + 1]
mov dword [esp + 0x5c], ebx
mov esi, dword [edx]
mov ecx, dword [edx + 4]
sub ecx, esi
sar ecx, 2
cmp ecx, edi
cmovae ecx, edi
cmp ebx, ecx
jae 0x496100
cmp dword [esi + eax*4 + 4], 0
jne 0x496100
add eax, 2
nop word cs:[eax + eax]
nop
mov dword [esp + 0x5c], eax
cmp ecx, eax
je 0x496100
mov esi, dword [edx]
cmp dword [esi + eax*4], 0
lea eax, [eax + 1]
je 0x496170
jmp 0x496100
mov ecx, dword [0x642b30]
test ecx, ecx
jne 0x4961b1
movaps xmm0, xmmword [0x5cdd50]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.Chrome.MessageLoopProblem
call fcn.004e43f0
mov ecx, eax
mov dword [0x642b30], eax
mov eax, dword [ecx]
mov dword [esp], 3
call dword [eax + 0x14]
sub esp, 4
mov bl, 1
jmp 0x496448
mov ecx, ebx
call fcn.00495da0
mov ebx, eax
jmp 0x496444
cmp ecx, edi
je 0x4961e0
lea edx, [ecx + 4]
cmp edx, edi
jne 0x4961f7
mov edx, edi
jmp 0x496206
add edx, 4
cmp edi, edx
je 0x496204
mov esi, dword [edx]
test esi, esi
je 0x4961f0
mov dword [ecx], esi
add ecx, 4
jmp 0x4961f0
mov edx, dword [ebx]
mov edi, ecx
cmp edx, edi
je 0x49620e
mov dword [ebx], edi
cmp dword [esp + 0x58], 0
je 0x49623e
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.USER32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
sub esp, 4
mov esi, dword [esp + 0x44]
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
je 0x4962d5
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
lea eax, [esi + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x50]
mov dword [eax + 4], ecx
mov dword [esi + 0x38], ecx
mov dword [esp + 0x5c], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
sub ecx, eax
sar ecx, 2
xor edx, edx
cmp dword [esi + 0x40], 1
mov esi, 0
sbb esi, esi
or esi, ecx
mov dword [esp + 0x60], esi
cmp ecx, esi
cmovae ecx, esi
test ecx, ecx
je 0x4962e9
cmp dword [eax], 0
jne 0x4962e9
mov edi, 1
nop
mov edx, edi
mov dword [esp + 0x5c], edi
cmp ecx, edi
je 0x4962e9
lea edi, [edx + 1]
cmp dword [eax + edx*4], 0
je 0x4962c0
jmp 0x4962e9
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
xor esi, esi
xor edx, edx
mov edi, dword [esp + 0x58]
test edi, edi
je 0x49643e
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov ebx, eax
sub ebx, ecx
sar ebx, 2
cmp ebx, esi
cmovae ebx, esi
cmp edx, ebx
jne 0x49636d
lea edx, [edi + 4]
mov esi, dword [edi + 0x10]
cmp esi, dword [edi + 0xc]
jne 0x49640e
cmp ecx, eax
je 0x4963d8
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp dword [ecx], 0
je 0x4963d8
add ecx, 4
cmp eax, ecx
jne 0x496330
mov esi, eax
jmp 0x496408
mov edx, dword [esp + 0x60]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov esi, eax
sub esi, ecx
sar esi, 2
cmp esi, edx
cmovae esi, edx
mov edx, dword [esp + 0x5c]
cmp edx, esi
je 0x49630a
mov ecx, dword [ecx + edx*4]
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [eax + 4]
sub esp, 4
mov edi, dword [esp + 0x58]
test edi, edi
je 0x49643e
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
lea ebx, [eax + 1]
mov dword [esp + 0x5c], ebx
mov edx, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, edx
sar ecx, 2
cmp ecx, esi
cmovae ecx, esi
cmp ebx, ecx
jae 0x496350
cmp dword [edx + eax*4 + 4], 0
jne 0x496350
add eax, 2
nop word cs:[eax + eax]
mov dword [esp + 0x5c], eax
cmp ecx, eax
je 0x496350
mov edx, dword [edi]
cmp dword [edx + eax*4], 0
lea eax, [eax + 1]
je 0x4963c0
jmp 0x496350
cmp ecx, eax
je 0x4963e3
lea esi, [ecx + 4]
cmp esi, eax
jne 0x4963f7
mov esi, eax
jmp 0x496406
add esi, 4
cmp eax, esi
je 0x496404
mov edi, dword [esi]
test edi, edi
je 0x4963f0
mov dword [ecx], edi
add ecx, 4
jmp 0x4963f0
mov esi, dword [edx]
mov eax, ecx
cmp esi, eax
je 0x49640e
mov dword [edx], eax
cmp dword [esp + 0x58], 0
je 0x49643e
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov bl, 1
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
test edi, edi
mov eax, dword [esp + 0x40]
je 0x496479
cmp byte [edi], 0
je 0x496479
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 8], xmm0
mov dword [esp], edi
mov dword [esp + 4], str.MessagePumpForUI::ProcessMessageHelper
call fcn.004a10b0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [esp], str.base_toplevel
call fcn.0049e0d0
mov edi, eax
mov dword [0x642b20], eax
test byte [edi], 0x19
je 0x495fb3
call fcn.0047aa60
mov dword [esp + 0x38], eax
lea esi, [esp + 0x48]
mov dword [esp], esi
call fcn.0049af70
mov word [esp + 0x50], 0x201
mov dword [esp + 0x54], str.message
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
lea eax, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 4], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.MessagePumpForUI::ProcessMessageHelper
mov dword [esp], 0x58
call fcn.004a0f80
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edx
mov al, byte [esp + 0x50]
test al, al
je 0x495fb5
xor esi, esi
jmp 0x49654c
add esi, 1
movzx ecx, al
cmp esi, ecx
jae 0x495fb5
cmp byte [esp + esi + 0x51], 8
jne 0x49653e
mov ecx, dword [esp + esi*8 + 0x60]
test ecx, ecx
je 0x49653e
mov eax, dword [ecx]
mov dword [esp], 1
call dword [eax]
sub esp, 4
movzx eax, byte [esp + 0x50]
jmp 0x49653e