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

Disassembly:
jmp 0x411220
sub esp, 0x5c
mov eax, dword [0x4f0140]
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 0x411269
mov al, byte [edi]
cmp al, 0x2b
je 0x411262
cmp al, 0x2d
jne 0x411269
mov ebp, 1
jmp 0x41126b
xor ebp, ebp
mov eax, dword [ecx + 0x14]
and eax, 0x3000
mov dword [esp + 0x14], ebp
cmp eax, 0x3000
je 0x411285
mov edx, 0x4bb448
jmp 0x4112a9
lea eax, [ebp + 2]
mov edx, 0x4bb44c
cmp eax, esi
ja 0x4112a9
cmp byte [edi + ebp], 0x30
jne 0x4112a9
mov cl, byte [edi + ebp + 1]
cmp cl, 0x78
je 0x4112a5
cmp cl, 0x58
jne 0x4112a9
mov dword [esp + 0x14], eax
push edx
push edi
call fcn.00402752
mov dword [esp + 0x18], eax
mov eax, 0x2e
mov word [esp + 0x28], ax
call fcn.0040135c
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00402752
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.0040349a
add esp, 4
mov dword [esp + 0x2c], eax
test ebp, ebp
je 0x41131a
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x41131a
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.0040558d
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.00405425
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
test ecx, ecx
je 0x41137e
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x41137e
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 0x4113b8
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 0x41159e
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 0x41159e
mov ebp, dword [esp + 0x38]
nop dword [eax]
mov edi, dword [esp + 0x14]
test al, al
jle 0x4115a6
movsx ecx, al
mov eax, ebx
sub eax, edi
cmp ecx, eax
jae 0x4115a6
mov edi, dword [esp + 0x48]
sub ebx, ecx
cmp edi, ebx
jb 0x4117d7
mov esi, dword [esp + 0x4c]
mov eax, esi
sub eax, edi
mov dword [esp + 0x18], esi
cmp eax, 1
jb 0x411465
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.0040596b
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov word [esi], ax
mov ebp, dword [esp + 0x38]
jmp 0x411580
mov eax, 0x7ffffffe
sub eax, edi
cmp eax, 1
jb 0x4117d2
lea ecx, [edi + 1]
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x41148a
mov ecx, 0x7ffffffe
jmp 0x4114a8
mov edx, esi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x4114a0
mov ecx, 0x7ffffffe
jmp 0x4114a8
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.004032c9
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 0x411546
mov esi, dword [esp + 0x3c]
push esi
push ebp
call fcn.004057ea
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.004057ea
mov eax, dword [esp + 0x30]
add esp, 0x18
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x41153a
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4117dc
mov esi, edx
push ecx
push esi
call fcn.00401a64
add esp, 8
jmp 0x41157c
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.004057ea
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.004057ea
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 0x4113f0
jmp 0x4115a2
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 0x4115c5
jg 0x4115bd
test esi, esi
je 0x4115c5
cmp esi, ebx
jbe 0x4115c5
sub esi, ebx
jmp 0x4115c7
xor esi, esi
mov eax, dword [eax + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x41169b
cmp eax, 0x100
je 0x41163e
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.004014dd
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.00404e62
add esp, 0x30
jmp 0x4116c8
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.00404e62
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.004014dd
add esp, 0x30
xor esi, esi
jmp 0x4116cf
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.00404e62
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.00404e62
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.004014dd
mov ecx, dword [esp + 0x94]
add esp, 0x30
cmp ecx, 0xf
jbe 0x41176e
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411764
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4117dc
push ecx
push edx
call fcn.00401a64
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 0x4117bb
mov edx, dword [esp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4117b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4117dc
push ecx
push edx
call fcn.00401a64
add esp, 8
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004030df
add esp, 0x5c
ret 0x20
call fcn.00403940
call fcn.004025f9
call fcn.0040487c
int3