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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x5886d0]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x20]
push ebx
push edi
push 1
push eax
call dword [0x5397ec]
lea ecx, [esp + 0x28]
push ecx
mov dword [esi + 0xc4], 0xffffffff
mov dword [esp + 0x3c], 0x1c
mov dword [esp + 0x20], 0xc
call fcn.00411f4e
push 0x12
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [0x53949c]
mov ebx, eax
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0
call dword [0x5394a8]
test eax, eax
je 0x40ef4f
inc dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x48]
push eax
push ebx
call dword [0x5394a0]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00510abf
mov edi, eax
add esp, 4
test edi, edi
je 0x40eef1
push 0
push 0
mov dword [edi], 6
mov edx, dword [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x48]
push eax
push ebx
call dword [0x5394a0]
lea ecx, [edi + 4]
mov dword [esp + 0xc], eax
lea ebx, [esi + 0xc0]
test ecx, ecx
jne 0x40ee25
xor eax, eax
jmp 0x40ee41
mov eax, ecx
lea edx, [eax + 2]
mov dword [esp + 0x18], edx
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40ee30
sub eax, dword [esp + 0x18]
sar eax, 1
push eax
push ecx
mov ecx, ebx
call fcn.00402a70
push edi
call fcn.00510c77
add esp, 4
cmp dword [esp + 0xc], 0
je 0x40eec7
mov eax, dword [ebx]
mov ebx, dword [0x539254]
push 0
push 0x80
push 3
push 0
push 3
push 0
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x40eec7
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00411f54
movzx ecx, al
push edi
mov dword [esp + 0x10], ecx
call dword [0x53924c]
cmp dword [esp + 0xc], 0
je 0x40eec7
mov edx, 0x1cbe
cmp word [esp + 0x20], dx
jne 0x40eec7
mov eax, 0x114
cmp word [esp + 0x22], ax
jne 0x40eec7
mov eax, dword [esi + 0xbc]
lea ecx, [eax + 1]
mov dword [esi + 0xbc], ecx
cmp eax, 1
je 0x40ef09
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push edx
call dword [0x5394a8]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x40edc2
jmp 0x40ef4f
push ebx
call dword [0x5394a4]
pop edi
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.005101ac
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc0]
push 0
push 0x40000080
push 3
push 0
push 3
push 0x80000000
push eax
call ebx
push 0
push 0x40000080
push 3
push 0
push 3
mov dword [esi + 0xc4], eax
mov eax, dword [esi + 0xc0]
push 0x40000000
push eax
call ebx
mov ebx, dword [esp + 8]
mov dword [esi + 0xc8], eax
push ebx
call dword [0x5394a4]
or eax, 0xffffffff
cmp dword [esi + 0xc4], eax
je 0x40f04e
cmp dword [esi + 0xc8], eax
je 0x40f04e
push 0
push 4
push 0
push 0x10
push esi
push 0x40e480
call fcn.00421aa7
mov dword [esi + 0x78], eax
test eax, eax
je 0x40ef95
mov eax, dword [eax + 0x2c]
push eax
call dword [0x539230]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 8
push 1
mov dl, 4
mov eax, esi
mov dword [esi + 0x2348], 7
call fcn.00410b80
push 1
push 0x3e8
lea ecx, [esi + 0x1d78]
call fcn.00419f6a
mov ecx, eax
call fcn.0041a18d
push 1
lea edi, [esi + 0x1bfc]
push 0x401
mov ecx, edi
call fcn.00419f6a
mov ecx, eax
call fcn.0041a18d
push 1
push 0x40a
mov ecx, edi
call fcn.00419f6a
mov ecx, eax
call fcn.0041a18d
push 1
lea edi, [esi + 0x120]
push 0x3fd
mov ecx, edi
call fcn.00419f6a
mov ecx, eax
call fcn.0041a18d
push 1
push 0x3fc
mov ecx, edi
call fcn.00419f6a
mov ecx, eax
call fcn.0041a18d
mov ecx, dword [esi + 0x20]
push 0
push 0x1f4
push 2
push ecx
jmp 0x40f05b
mov edx, dword [esi + 0x20]
push 0
push 0x3e8
push 1
push edx
call dword [0x5397f8]
mov ecx, dword [esp + 0x54]
pop edi
pop ebx
xor ecx, esp
call fcn.005101ac
mov esp, ebp
pop ebp
ret