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

Disassembly:
jmp 0x4106f0
sub esp, 0x5c
mov eax, dword [0x523e00]
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 0x410739
mov al, byte [edi]
cmp al, 0x2b
je 0x410732
cmp al, 0x2d
jne 0x410739
mov ebp, 1
jmp 0x41073b
xor ebp, ebp
mov eax, dword [ecx + 0x14]
and eax, 0x3000
mov dword [esp + 0x14], ebp
cmp eax, 0x3000
je 0x410755
mov edx, 0x4b73a0
jmp 0x410779
lea eax, [ebp + 2]
mov edx, 0x4b73a4
cmp eax, esi
ja 0x410779
cmp byte [edi + ebp], 0x30
jne 0x410779
mov cl, byte [edi + ebp + 1]
cmp cl, 0x78
je 0x410775
cmp cl, 0x58
jne 0x410779
mov dword [esp + 0x14], eax
push edx
push edi
call fcn.004026da
mov dword [esp + 0x18], eax
mov eax, 0x2e
mov word [esp + 0x28], ax
call fcn.0040134d
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004026da
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.004033cd
add esp, 4
mov dword [esp + 0x2c], eax
test ebp, ebp
je 0x4107ea
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x4107ea
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.004053f8
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.00405295
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
test ecx, ecx
je 0x41084e
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x41084e
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 0x410888
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 0x410a6e
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 0x410a6e
mov ebp, dword [esp + 0x38]
nop dword [eax]
mov edi, dword [esp + 0x14]
test al, al
jle 0x410a76
movsx ecx, al
mov eax, ebx
sub eax, edi
cmp ecx, eax
jae 0x410a76
mov edi, dword [esp + 0x48]
sub ebx, ecx
cmp edi, ebx
jb 0x410ca7
mov esi, dword [esp + 0x4c]
mov eax, esi
sub eax, edi
mov dword [esp + 0x18], esi
cmp eax, 1
jb 0x410935
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.004057bd
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov word [esi], ax
mov ebp, dword [esp + 0x38]
jmp 0x410a50
mov eax, 0x7ffffffe
sub eax, edi
cmp eax, 1
jb 0x410ca2
lea ecx, [edi + 1]
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x41095a
mov ecx, 0x7ffffffe
jmp 0x410978
mov edx, esi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x410970
mov ecx, 0x7ffffffe
jmp 0x410978
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.0040320b
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 0x410a16
mov esi, dword [esp + 0x3c]
push esi
push ebp
call fcn.00405641
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.00405641
mov eax, dword [esp + 0x30]
add esp, 0x18
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x410a0a
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x410cac
mov esi, edx
push ecx
push esi
call fcn.00401a28
add esp, 8
jmp 0x410a4c
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.00405641
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.00405641
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 0x4108c0
jmp 0x410a72
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 0x410a95
jg 0x410a8d
test esi, esi
je 0x410a95
cmp esi, ebx
jbe 0x410a95
sub esi, ebx
jmp 0x410a97
xor esi, esi
mov eax, dword [eax + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x410b6b
cmp eax, 0x100
je 0x410b0e
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.004014c4
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.00404cf5
add esp, 0x30
jmp 0x410b98
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.00404cf5
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.004014c4
add esp, 0x30
xor esi, esi
jmp 0x410b9f
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.00404cf5
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.00404cf5
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.004014c4
mov ecx, dword [esp + 0x94]
add esp, 0x30
cmp ecx, 0xf
jbe 0x410c3e
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410c34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410cac
push ecx
push edx
call fcn.00401a28
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 0x410c8b
mov edx, dword [esp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410c81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410cac
push ecx
push edx
call fcn.00401a28
add esp, 8
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040303a
add esp, 0x5c
ret 0x20
call fcn.00403855
call fcn.00402590
call fcn.0040472d
int3