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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411ed5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x417054]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x417054]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
push eax
mov dword [esp + 0x60], edi
call fcn.00403042
test al, al
je 0x4021ba
and dword [esp + 0x78], 0
xor eax, eax
mov dword [esp + 0x7c], 7
mov word [esp + 0x68], ax
and dword [esp + 0x90], eax
lea esi, [edi + 0x20]
mov eax, 0x413d54
call fcn.00402595
lea edx, [esp + 0x64]
mov ebx, 0x413d74
mov ecx, edi
call fcn.0040309f
test al, al
je 0x401ec9
cmp dword [esp + 0x78], 0
je 0x401ec9
push 0xffffffffffffffff
push esi
xor ebx, ebx
lea eax, [esp + 0x6c]
call fcn.004028b1
lea eax, [esp + 0x24]
push eax
call fcn.004023d9
lea edx, [esp + 0x64]
mov ebx, 0x413d90
mov ecx, edi
mov byte [esp + 0x90], 1
call fcn.0040309f
test al, al
je 0x40217a
cmp dword [esp + 0x78], 0
je 0x40217a
cmp dword [esp + 0x7c], 8
mov ecx, dword [esp + 0x68]
jae 0x401f0d
lea ecx, [esp + 0x68]
lea eax, [esp + 0x24]
push eax
call fcn.004047fe
pop ecx
lea eax, [esp + 0x3c]
push eax
call fcn.004023d9
lea edx, [esp + 0x64]
mov ebx, 0x413de4
mov ecx, edi
mov byte [esp + 0x90], 2
call fcn.0040309f
test al, al
je 0x40214f
cmp dword [esp + 0x78], 0
je 0x40214f
cmp dword [esp + 0x7c], 8
mov ecx, dword [esp + 0x68]
jae 0x401f5c
lea ecx, [esp + 0x68]
lea eax, [esp + 0x3c]
push eax
call fcn.004047fe
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
pop ecx
cdq
push 0x1c
pop esi
mov ecx, esi
idiv ecx
mov ebx, esi
mov ecx, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
cdq
idiv ebx
cmp eax, ecx
je 0x401fca
push 0x413d98
call fcn.004043d5
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
pop ecx
cdq
mov ecx, esi
idiv ecx
push eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
cdq
idiv esi
push eax
push 0x413e18
call fcn.004043d5
add esp, 0xc
lea esi, [esp + 0x3c]
call fcn.00402412
jmp 0x4021a4
lea ebx, [edi + 0x58]
mov eax, ebx
call fcn.0040235e
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
jbe 0x401fe3
call fcn.004060e9
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], esi
mov esi, eax
cmp eax, dword [esp + 0x4c]
jbe 0x402000
call fcn.004060e9
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
mov edi, 0x413d98
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], esi
jbe 0x402020
call fcn.004060e9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40202e
cmp eax, dword [esp + 0x24]
je 0x402033
call fcn.004060e9
cmp dword [esp + 0x20], esi
je 0x4020f4
lea esi, [esp + 0x1c]
call fcn.0040243f
cmp dword [eax + 0x18], 8
jb 0x402051
mov eax, dword [eax + 4]
jmp 0x402054
add eax, 4
lea ecx, [esp + 0x18]
push ecx
call fcn.00404754
pop ecx
test al, al
je 0x4020db
lea esi, [esp + 0x54]
call fcn.0040243f
cmp dword [eax + 0x18], 8
jb 0x402077
mov eax, dword [eax + 4]
jmp 0x40207a
add eax, 4
lea ecx, [esp + 0x14]
push ecx
call fcn.00404754
pop ecx
test al, al
je 0x4020db
push edi
call fcn.004043d5
pop ecx
push dword [esp + 0x14]
push dword [esp + 0x1c]
push 0x413ea8
call fcn.004043d5
movzx eax, word [esp + 0x24]
movzx ecx, word [esp + 0x20]
shl eax, 0x10
or eax, ecx
mov dword [esp + 0x6c], eax
add esp, 0xc
lea eax, [esp + 0x60]
push eax
mov eax, ebx
call fcn.00402300
lea esi, [esp + 0x1c]
call fcn.00402467
lea esi, [esp + 0x54]
call fcn.00402467
jmp 0x402011
push edi
call fcn.004043d5
pop ecx
push dword [esp + 0x14]
push dword [esp + 0x1c]
push 0x413e50
jmp 0x401fb4
mov esi, dword [esp + 0x5c]
lea ebx, [esi + 0x3c]
mov eax, ebx
call fcn.0040225e
mov edx, ebx
mov ebx, 0x413ef0
mov ecx, esi
call fcn.0040309f
test al, al
jne 0x40212c
push edi
call fcn.004043d5
mov dword [esp], 0x413ef8
call fcn.004043d5
pop ecx
jmp 0x401fbc
lea esi, [esp + 0x3c]
call fcn.00402412
lea esi, [esp + 0x24]
call fcn.00402412
push 0
push 1
lea esi, [esp + 0x6c]
call fcn.00402647
mov al, 1
jmp 0x4021bc
push 0x413d98
call fcn.004043d5
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
pop ecx
jae 0x40216c
lea eax, [esp + 0x68]
push eax
push 0x413dec
call fcn.004043d5
pop ecx
jmp 0x402126
push 0x413d98
call fcn.004043d5
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
pop ecx
jae 0x402197
lea eax, [esp + 0x68]
push eax
push 0x413db4
call fcn.004043d5
pop ecx
pop ecx
lea esi, [esp + 0x24]
call fcn.00402412
push 0
push 1
lea esi, [esp + 0x6c]
call fcn.00402647
xor al, al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00405bfd
mov esp, ebp
pop ebp
ret 4