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

Disassembly:
push 0xffffffffffffffff
push 0x4809a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x78]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], edi
call fcn.00461feb
mov eax, dword [0x4a6c70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x4a9510]
mov byte [esp + 0x70], 4
cmp eax, edi
jle 0x40b6d0
mov bl, 6
mov ecx, dword [0x4a950c]
mov esi, dword [ecx + edi*4]
test esi, esi
mov dword [esp + 0x3c], esi
je 0x40b6c6
lea ecx, [esi + 8]
mov byte [esp + 0x70], bl
call fcn.00462276
lea ecx, [esi + 4]
mov byte [esp + 0x70], 5
call fcn.00462276
mov ecx, esi
mov byte [esp + 0x70], 4
call fcn.00462276
push esi
call fcn.00462970
add esp, 4
mov eax, dword [0x4a9510]
inc edi
cmp edi, eax
jl 0x40b687
push 0xffffffffffffffff
push 0
mov ecx, 0x4a9508
call fcn.0045c084
mov edx, dword [ebp + 0xb8]
push 0
push 0
push 0x1009
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
test eax, eax
jle 0x40b9f5
jmp 0x40b709
mov ebp, dword [esp + 0x20]
push 0x3f
lea ecx, [esp + 0x14]
call fcn.00462797
mov esi, eax
cmp esi, 0xffffffff
je 0x40b9f5
lea ecx, [esp + 0x24]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.004575a7
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 7
call fcn.004623af
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 4
call fcn.00462276
mov eax, dword [esp + 0x10]
mov ebx, 3
cmp byte [esi + eax + 1], 0x44
jne 0x40b760
mov ebx, 1
mov eax, dword [eax - 8]
lea edx, [esp + 0x28]
sub eax, esi
lea ecx, [esp + 0x10]
sub eax, 3
push eax
push edx
call fcn.0045752b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 8
call fcn.004623af
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 4
call fcn.00462276
push 0x3f
lea ecx, [esp + 0x14]
call fcn.00462797
mov esi, eax
cmp esi, 0xffffffff
je 0x40b9f5
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004575a7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 9
call fcn.004623af
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 4
call fcn.00462276
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
dec eax
push eax
push edx
call fcn.0045752b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xa
call fcn.004623af
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 4
call fcn.00462276
push 0x7c
lea ecx, [esp + 0x14]
call fcn.00462797
mov esi, eax
cmp esi, 0xffffffff
je 0x40b882
lea eax, [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004575a7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 0xb
call fcn.004623af
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 4
call fcn.00462276
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
dec eax
push eax
push edx
call fcn.0045752b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xc
call fcn.004623af
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 4
call fcn.00462276
jmp 0x40b89e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.004623af
push 0x4a94ac
lea ecx, [esp + 0x14]
call fcn.004623ff
lea ecx, [esp + 0x14]
push 0x4a3974
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.0046250b
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 0xd
call fcn.004623af
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 4
call fcn.00462276
cmp ebx, 1
jne 0x40b8e2
push 0x4a94ac
lea ecx, [esp + 0x18]
call fcn.004623ff
mov eax, dword [ebp + 0xb8]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, ebx
xor esi, esi
dec edi
neg edi
sbb edi, edi
and edi, eax
mov ecx, esi
mov eax, esi
neg ecx
sbb ecx, ecx
mov dword [esp + 0x44], edi
and ecx, 0xfffffffe
mov dword [esp + 0x48], esi
add ecx, 2
mov dword [esp + 0x5c], ebx
or ecx, 5
sub eax, 0
mov dword [esp + 0x40], ecx
je 0x40b943
dec eax
je 0x40b939
dec eax
jne 0x40b94b
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
jmp 0x40b94b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
jmp 0x40b94b
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
push 0xc
call fcn.00462947
add esp, 4
test eax, eax
je 0x40b977
mov edx, dword [0x4a6c70]
mov ebp, eax
mov dword [eax], edx
mov ecx, dword [0x4a6c70]
mov dword [eax + 4], ecx
mov edx, dword [0x4a6c70]
mov dword [eax + 8], edx
jmp 0x40b979
xor ebp, ebp
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.004623af
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 4]
call fcn.004623af
lea edx, [esp + 0x18]
lea ecx, [ebp + 8]
push edx
call fcn.004623af
mov eax, dword [0x4a9510]
push ebp
push eax
mov ecx, 0x4a9508
call fcn.0045c248
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], ebp
test esi, esi
push ecx
push 0
jne 0x40b9c6
push 0x1007
jmp 0x40b9cb
push 0x1006
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0xb8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
cmp esi, 3
jl 0x40b903
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jg 0x40b705
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call fcn.00462276
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
call fcn.00462276
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call fcn.00462276
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 0
call fcn.00462276
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.00462276
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4