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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa4
cmp dword [ecx + 0x20], 0
je 0x40e659
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa0]
push 0xa
push 4
push ecx
push eax
call fcn.0040e670
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x10]
push eax
call fcn.0040aba0
add esp, 4
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x9c], eax
mov eax, ebp
and eax, 0x400
mov ecx, ebp
xor ecx, 0x400
lea eax, [ecx + eax*2]
push eax
call fcn.0040cc70
add esp, 4
mov edi, eax
mov dword [esp + 0x14], 0xb5a5b6a4
mov byte [esp + 0x18], 0xd0
mov word [esp + 0x19], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40e24b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040ebc0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40e220
lea eax, [esp + 0x14]
mov ecx, esi
push 0x455f00
push eax
push edi
call fcn.0040db90
mov dword [esp + 0x14], 0x19b6acac
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x40e2ab
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040ec40
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x40e280
mov ecx, esi
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040db90
mov ebx, dword [str.FATE99__]
mov dword [esp + 0x14], 0xe94e4448
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40e30b
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040ece0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40e2e0
mov ecx, esi
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040db90
mov dword [esp + 0x14], 0xafa4aca3
mov dword [esp + 0x18], 0xbcb3b88b
mov dword [esp + 0x1c], 0xb6b588bb
mov byte [esp + 0x20], 0x24
mov dword [esp + 0x21], 0
mov byte [esp + 0x25], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x11
ja 0x40e38b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040ee10
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x12
jb 0x40e360
mov dword [esp + 4], 0x179a8679
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x40e3d6
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0040ed80
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x40e3b0
lea ebx, [esp + 4]
mov ecx, esi
lea eax, [esp + 0x14]
push eax
push ebx
push edi
call fcn.0040db90
mov dword [esp + 0x14], 0x2a323032
mov byte [esp + 0x18], 0x8c
mov dword [esp + 0x19], 0
mov word [esp + 0x1d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40e44b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040ee80
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40e420
mov ecx, esi
push ebp
push dword [esp + 0xa0]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0040dde0
mov ebp, dword [esi + 0x60]
mov dword [esp + 0x14], 0x1fad19df
mov dword [esp + 0x18], 0xe3561dae
mov dword [esp + 0x1c], 0xe754e145
mov dword [esp + 0x20], 0xeb07e550
mov dword [esp + 0x24], 0xef57e93c
mov dword [esp + 0x28], 0xf357ed5c
mov dword [esp + 0x2c], 0xf716f10e
mov dword [esp + 0x30], 0xfb4ff559
mov dword [esp + 0x34], 0xff4af954
mov dword [esp + 0x38], 0xc372fd55
mov dword [esp + 0x3c], 0xc770c161
mov dword [esp + 0x40], 0xcb39c570
mov dword [esp + 0x44], 0xcf7dc962
mov dword [esp + 0x48], 0xd37fcd7a
mov dword [esp + 0x4c], 0xd772d13d
mov dword [esp + 0x50], 0xdb6ed575
mov dword [esp + 0x54], 0xdf21d979
mov dword [esp + 0x58], 0xa304dd3c
mov dword [esp + 0x5c], 0xa713a113
mov dword [esp + 0x60], 0xab0ea516
mov dword [esp + 0x64], 0xaf18a909
mov dword [esp + 0x68], 0xb34fad15
mov dword [esp + 0x6c], 0xb713b116
mov dword [esp + 0x70], 0xbb4fb54c
mov dword [esp + 0x74], 0xbf1bb91c
mov dword [esp + 0x78], 0x832bbd49
mov dword [esp + 0x7c], 0x87228130
mov dword [esp + 0x80], 0x8b2d8537
mov dword [esp + 0x84], 0x8f2b8921
mov dword [esp + 0x88], 0x93248d3a
mov dword [esp + 0x8c], 0x97679135
mov dword [esp + 0x90], 0x9b949599
mov word [esp + 0x94], 0x9998
mov dword [esp + 0x96], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x85
ja 0x40e5cd
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040ef80
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x86
jb 0x40e5a0
mov dword [esp + 4], 0xc165c715
mov dword [esp + 8], 0xcd69c350
mov word [esp + 0xc], 0xcfcc
mov dword [esp + 0xe], 0
mov byte [esp + 0x12], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xe
ja 0x40e626
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0040ef10
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xf
jb 0x40e600
push 0x493e0
push ebp
push edi
push 0
push 0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00410e90
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040cc80
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x40e65b
mov bl, 1
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret