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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4556c0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
push edi
mov edi, dword [esp + 0x84]
test esi, esi
je 0x401929
mov al, byte [edi]
cmp al, 0x2b
je 0x401922
cmp al, 0x2d
jne 0x401929
mov ebp, 1
jmp 0x40192b
xor ebp, ebp
mov eax, dword [ecx + 0x14]
and eax, 0x3000
mov dword [esp + 0x14], ebp
cmp eax, 0x3000
je 0x401945
mov edx, 0x42e62c
jmp 0x401969
lea eax, [ebp + 2]
mov edx, 0x42e630
cmp eax, esi
ja 0x401969
cmp byte [edi + ebp], 0x30
jne 0x401969
mov cl, byte [edi + ebp + 1]
cmp cl, 0x78
je 0x401965
cmp cl, 0x58
jne 0x401969
mov dword [esp + 0x14], eax
push edx
push edi
call fcn.00418640
mov dword [esp + 0x18], eax
mov eax, 0x2e
mov word [esp + 0x28], ax
call fcn.004186c2
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00418640
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x30]
mov ebp, dword [eax + 4]
mov ecx, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [ebp]
call dword [eax + 4]
lea eax, [esp + 0x18]
push eax
call fcn.00402730
add esp, 4
mov dword [esp + 0x2c], eax
test ebp, ebp
je 0x4019da
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x4019da
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.00403120
cmp dword [esp + 0x4c], 7
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x2c]
cmova eax, dword [esp + 0x38]
push eax
lea eax, [esi + edi]
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x28]
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.00402ab0
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
test ecx, ecx
je 0x401a3e
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x401a3e
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
movzx eax, ax
mov dword [esp + 0x30], eax
cmp ebx, esi
je 0x401a78
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp dword [esp + 0x4c], 7
movzx ecx, ax
lea eax, [esp + 0x38]
cmova eax, dword [esp + 0x38]
mov word [eax + ebx*2], cx
cmp byte [esp + 0x8c], 0
je 0x401c5e
cmp ebx, esi
lea eax, [esp + 0x50]
cmove ebx, dword [esp + 0x10]
cmp dword [esp + 0x64], 0xf
cmova eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov al, byte [eax]
cmp al, 0x7f
je 0x401c5e
mov ebp, dword [esp + 0x38]
nop dword [eax]
mov edi, dword [esp + 0x14]
test al, al
jle 0x401c66
movsx ecx, al
mov eax, ebx
sub eax, edi
cmp ecx, eax
jae 0x401c66
mov edi, dword [esp + 0x48]
sub ebx, ecx
cmp edi, ebx
jb 0x401e97
mov esi, dword [esp + 0x4c]
mov eax, esi
sub eax, edi
mov dword [esp + 0x18], esi
cmp eax, 1
jb 0x401b25
lea eax, [edi + 1]
cmp esi, 7
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
cmova eax, ebp
sub edi, ebx
lea esi, [eax + ebx*2]
lea eax, [edi*2 + 2]
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.0040d290
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov word [esi], ax
mov ebp, dword [esp + 0x38]
jmp 0x401c40
mov eax, 0x7ffffffe
sub eax, edi
cmp eax, 1
jb 0x401e92
lea ecx, [edi + 1]
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x401b4a
mov ecx, 0x7ffffffe
jmp 0x401b68
mov edx, esi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x401b60
mov ecx, 0x7ffffffe
jmp 0x401b68
lea eax, [esi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004014f0
mov ebp, eax
add esp, 8
lea eax, [edi + 1]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
lea eax, [ebx + ebx]
lea ecx, [eax + ebp]
mov dword [esp + 0x10], ecx
push eax
cmp esi, 7
jbe 0x401c06
mov esi, dword [esp + 0x3c]
push esi
push ebp
call fcn.0040d290
mov ecx, dword [esp + 0x1c]
sub edi, ebx
mov eax, dword [esp + 0x3c]
mov word [ecx], ax
lea eax, [edi*2 + 2]
push eax
lea eax, [ebx + ebx]
add eax, esi
push eax
lea eax, [ecx + 2]
push eax
call fcn.0040d290
mov eax, dword [esp + 0x30]
add esp, 0x18
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x401bfa
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x401e9c
mov esi, edx
push ecx
push esi
call fcn.0040bf32
add esp, 8
jmp 0x401c3c
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.0040d290
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x44]
mov eax, dword [esp + 0x3c]
sub edi, ebx
mov word [ecx], ax
lea eax, [edi*2 + 2]
push eax
lea eax, [ebx + ebx]
add eax, edx
push eax
lea eax, [ecx + 2]
push eax
call fcn.0040d290
add esp, 0x18
mov dword [esp + 0x38], ebp
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 1], 0
lea eax, [ecx + 1]
cmovg ecx, eax
mov dword [esp + 0x2c], ecx
mov al, byte [ecx]
cmp al, 0x7f
jne 0x401ab0
jmp 0x401c62
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x48]
cmp dword [eax + 0x24], 0
mov esi, dword [eax + 0x20]
jl 0x401c85
jg 0x401c7d
test esi, esi
je 0x401c85
cmp esi, ebx
jbe 0x401c85
sub esi, ebx
jmp 0x401c87
xor esi, esi
mov eax, dword [eax + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x401d5b
cmp eax, 0x100
je 0x401cfe
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x18]
push esi
push dword [esp + 0x84]
push dword [esp + 0x80]
push dword [esp + 0x80]
push eax
push ebp
call fcn.00405180
xor esi, esi
cmp dword [esp + 0x64], 7
push edi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x54]
cmova eax, dword [esp + 0x54]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x9c], edx
push eax
push ebp
mov dword [esp + 0xa8], ecx
call fcn.004050f0
add esp, 0x30
jmp 0x401d88
cmp dword [esp + 0x4c], 7
lea eax, [esp + 0x38]
push edi
cmova eax, ebp
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x24]
push dword [esp + 0x80]
push eax
push dword [esp + 0x38]
call fcn.004050f0
mov ebp, dword [esp + 0x98]
push esi
push ebp
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x3c]
push ecx
push eax
push dword [esp + 0x50]
mov dword [esp + 0xa4], ecx
call fcn.00405180
add esp, 0x30
xor esi, esi
jmp 0x401d8f
cmp dword [esp + 0x4c], 7
lea eax, [esp + 0x38]
push edi
cmova eax, ebp
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x24]
push dword [esp + 0x80]
push eax
push dword [esp + 0x38]
call fcn.004050f0
add esp, 0x18
mov ebp, dword [esp + 0x80]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x38]
cmp dword [esp + 0x4c], 7
mov dword [esp + 0x74], edx
cmova eax, dword [esp + 0x38]
sub ebx, edi
push ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x7c], ecx
lea eax, [eax + edi*2]
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004050f0
mov edx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x50]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebp
push eax
push ecx
push esi
push ebx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
call fcn.00405180
mov ecx, dword [esp + 0x94]
add esp, 0x30
cmp ecx, 0xf
jbe 0x401e2e
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e24
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e9c
push ecx
push edx
call fcn.0040bf32
add esp, 8
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], 0
cmp ecx, 7
jbe 0x401e7b
mov edx, dword [esp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401e71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e9c
push ecx
push edx
call fcn.0040bf32
add esp, 8
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bf45
add esp, 0x5c
ret 0x20
call fcn.00405300
call fcn.00405320
call fcn.00410a5f
int3