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

Disassembly:
sub esp, 0x58
mov eax, dword [0x4649c0]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
push esi
mov esi, dword [esp + 0x7c]
push edi
test ebp, ebp
je 0x401f23
mov al, byte [esi]
cmp al, 0x2b
je 0x401f1c
cmp al, 0x2d
jne 0x401f23
mov ebx, 1
jmp 0x401f25
xor ebx, ebx
mov eax, dword [ecx + 0x14]
and eax, 0x3000
cmp eax, 0x3000
je 0x401f3b
mov edx, 0x4317b4
jmp 0x401f5d
lea eax, [ebx + 2]
mov edx, 0x4317b8
cmp eax, ebp
ja 0x401f5d
cmp byte [esi + ebx], 0x30
jne 0x401f5d
mov cl, byte [esi + ebx + 1]
cmp cl, 0x78
je 0x401f5b
cmp cl, 0x58
jne 0x401f5d
mov ebx, eax
push edx
push esi
call fcn.0041b520
mov dword [esp + 0x2c], eax
mov eax, 0x2e
mov word [esp + 0x1c], ax
call fcn.0041b5a2
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0041b520
mov edi, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x18]
push eax
call fcn.004027a0
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x401fd0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x401fd0
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
push ebp
lea ecx, [esp + 0x3c]
call fcn.00403300
cmp dword [esp + 0x48], 0xf
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x18]
cmova eax, dword [esp + 0x34]
push eax
lea eax, [esi + ebp]
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x18]
push eax
call fcn.00402ce0
mov ecx, dword [esp + 0x20]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x402034
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x402034
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x10]
call eax
mov byte [esp + 0x18], al
cmp edi, ebp
je 0x40206d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
cmp dword [esp + 0x48], 0xf
mov cl, al
lea eax, [esp + 0x34]
cmova eax, dword [esp + 0x34]
mov byte [eax + edi], cl
cmp byte [esp + 0x88], 0
je 0x4020c4
cmp edi, ebp
lea esi, [esp + 0x4c]
cmove edi, dword [esp + 0x24]
cmp dword [esp + 0x60], 0xf
cmova esi, dword [esp + 0x4c]
mov al, byte [esi]
cmp al, 0x7f
je 0x4020c4
mov ebp, dword [esp + 0x18]
test al, al
jle 0x4020c4
movsx ecx, al
mov eax, edi
sub eax, ebx
cmp ecx, eax
jae 0x4020c4
push ebp
sub edi, ecx
lea ecx, [esp + 0x38]
push 1
push edi
call fcn.0040a400
cmp byte [esi + 1], 0
lea eax, [esi + 1]
cmovg esi, eax
mov al, byte [esi]
cmp al, 0x7f
jne 0x402096
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x44]
cmp dword [ebp + 0x24], 0
mov esi, dword [ebp + 0x20]
jl 0x4020e3
jg 0x4020db
test esi, esi
je 0x4020e3
cmp esi, edi
jbe 0x4020e3
sub esi, edi
jmp 0x4020e5
xor esi, esi
mov eax, dword [ebp + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x4021b0
cmp eax, 0x100
je 0x402158
push esi
push dword [esp + 0x80]
lea eax, [esp + 0x2c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push eax
push dword [esp + 0x24]
call fcn.004073e0
xor esi, esi
cmp dword [esp + 0x60], 0xf
push ebx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x50]
cmova eax, dword [esp + 0x50]
push eax
push ecx
push edx
lea eax, [esp + 0x4c]
mov dword [esp + 0x98], edx
push eax
push dword [esp + 0x3c]
mov dword [esp + 0xa4], ecx
call fcn.004072b0
add esp, 0x30
jmp 0x4021d9
cmp dword [esp + 0x48], 0xf
lea eax, [esp + 0x34]
push ebx
cmova eax, dword [esp + 0x38]
push eax
push dword [esp + 0x7c]
lea eax, [esp + 0x30]
push dword [esp + 0x7c]
push eax
push dword [esp + 0x24]
call fcn.004072b0
push esi
push dword [esp + 0x98]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
mov dword [esp + 0x98], eax
lea eax, [esp + 0x48]
push ecx
push eax
push dword [esp + 0x3c]
mov dword [esp + 0xa0], ecx
call fcn.004073e0
add esp, 0x30
xor esi, esi
jmp 0x4021d9
cmp dword [esp + 0x48], 0xf
lea eax, [esp + 0x34]
push ebx
cmova eax, dword [esp + 0x38]
push eax
push dword [esp + 0x7c]
lea eax, [esp + 0x30]
push dword [esp + 0x7c]
push eax
push dword [esp + 0x24]
call fcn.004072b0
add esp, 0x18
mov edx, dword [eax + 4]
mov ecx, dword [eax]
lea eax, [esp + 0x34]
cmp dword [esp + 0x48], 0xf
mov dword [esp + 0x70], ecx
cmova eax, dword [esp + 0x34]
sub edi, ebx
push edi
add eax, ebx
mov dword [esp + 0x78], edx
mov ebx, dword [esp + 0x14]
push eax
push edx
push ecx
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.004072b0
push esi
push dword [esp + 0x98]
mov esi, dword [esp + 0x50]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
push esi
push ebx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
call fcn.004073e0
mov ecx, dword [esp + 0x90]
add esp, 0x30
cmp ecx, 0xf
jbe 0x402279
mov edx, dword [esp + 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40226f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022d7
push ecx
push edx
call fcn.0040f9f5
add esp, 8
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0xf
mov byte [esp + 0x4c], 0
cmp ecx, 0xf
jbe 0x4022c0
mov edx, dword [esp + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4022b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022d7
push ecx
push edx
call fcn.0040f9f5
add esp, 8
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fd0e
add esp, 0x58
ret 0x20
call fcn.004143df
int3