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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42a258
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
test edi, edi
mov esi, ecx
jl 0x40edf1
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1004
push eax
call ebx
cmp edi, eax
jge 0x40edf1
mov ebp, dword [esp + 0x44]
test ebp, ebp
jl 0x40edf1
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x101f
push eax
call ebx
push eax
call fcn.004228b1
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0x1200
push ecx
call ebx
cmp ebp, eax
jge 0x40edf1
cmp dword [esi + 0x6c], edi
jne 0x40ed0d
cmp dword [esi + 0x70], ebp
je 0x40ef1a
push edi
mov ecx, esi
call fcn.0041f2a5
mov ecx, esi
call fcn.0040d8e0
push edi
mov ecx, esi
call fcn.0040d4f0
push 1
mov ecx, esi
call fcn.0040e440
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x1004
push edx
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], ebp
call ebx
mov ebp, eax
xor edi, edi
test ebp, ebp
jle 0x40ed78
lea ebx, [ebx]
push edi
mov ecx, esi
call fcn.0040d4f0
and al, 2
sub al, 2
neg al
sbb eax, eax
inc eax
mov dword [esp + 0x40], eax
je 0x40ed73
push 2
push 0
push edi
mov ecx, esi
call fcn.0041e953
inc edi
cmp edi, ebp
jl 0x40ed50
mov edi, dword [esi + 0x6c]
push 2
push 2
push edi
mov ecx, esi
call fcn.0041e953
mov ebp, 1
push ebp
push ebp
push edi
mov ecx, esi
call fcn.0041e953
mov eax, dword [esp + 0x44]
push eax
mov ecx, esi
call fcn.0040dbb0
mov ecx, dword [esi + 0x50]
mov edi, eax
cmp edi, dword [esi + 0x78]
je 0x40ee08
xor ebp, ebp
cmp ecx, ebp
mov dword [esi + 0x78], edi
je 0x40edbf
cmp dword [ecx + 0x1c], ebp
je 0x40edbf
mov edx, dword [ecx]
call dword [edx + 0x60]
mov ecx, dword [esi + 0x50]
push ebp
push esi
mov eax, 1
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
or edi, 0x40800180
push edi
call dword [eax + 0x130]
test eax, eax
jne 0x40ee41
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
test ecx, ecx
je 0x40ee13
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x40ee3f
xor eax, eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push esi
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov edx, dword [ecx]
or edi, 0x40800180
push edi
call dword [edx + 0x130]
test eax, eax
je 0x40edf1
xor ebp, ebp
mov ecx, dword [esi + 0x1c]
push ebp
push ebp
push 0x31
push ecx
call ebx
push 1
push eax
call fcn.00425c39
mov ecx, dword [esi + 0x50]
push eax
call fcn.0040be80
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x6c]
push edx
push 0x1038
push eax
mov dword [esp + 0x20], 2
call ebx
cmp dword [esi + 0x70], ebp
jle 0x40eea7
mov ecx, esi
call fcn.0040d4d0
test eax, eax
je 0x40eea7
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x6c]
push eax
push ecx
mov ecx, esi
call fcn.0040d480
test eax, eax
jl 0x40eea7
add dword [esp + 0x10], 0x10
mov ecx, dword [esi + 0x50]
push 1
lea edx, [esp + 0x14]
push edx
call fcn.0040d180
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x6c]
push eax
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.0041ee0d
mov eax, dword [eax]
mov ecx, dword [esi + 0x50]
push eax
mov dword [esp + 0x3c], ebp
call fcn.004248ec
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call fcn.004066e0
mov ecx, dword [esi + 0x50]
push 5
call fcn.00424966
mov edi, dword [esi + 0x50]
mov eax, dword [edi + 0x1c]
push 0xffffffffffffffff
push ebp
push 0xb1
push eax
call ebx
mov ecx, dword [edi + 0x1c]
push ebp
push ebp
push 0xb7
push ecx
call ebx
mov ecx, dword [esi + 0x50]
call fcn.004249c3
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8