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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x47d880]
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 0x401a79
mov al, byte [edi]
cmp al, 0x2b
je 0x401a72
cmp al, 0x2d
jne 0x401a79
mov ebp, 1
jmp 0x401a7b
xor ebp, ebp
mov eax, dword [ecx + 0x14]
and eax, 0x3000
mov dword [esp + 0x14], ebp
cmp eax, 0x3000
je 0x401a95
mov edx, 0x428578
jmp 0x401ab9
lea eax, [ebp + 2]
mov edx, 0x42857c
cmp eax, esi
ja 0x401ab9
cmp byte [edi + ebp], 0x30
jne 0x401ab9
mov cl, byte [edi + ebp + 1]
cmp cl, 0x78
je 0x401ab5
cmp cl, 0x58
jne 0x401ab9
mov dword [esp + 0x14], eax
push edx
push edi
call fcn.004143d0
mov dword [esp + 0x18], eax
mov eax, 0x2e
mov word [esp + 0x28], ax
call fcn.00414452
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004143d0
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.004024d0
add esp, 4
mov dword [esp + 0x2c], eax
test ebp, ebp
je 0x401b2a
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x401b2a
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.00402c30
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.00402850
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
test ecx, ecx
je 0x401b8e
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x401b8e
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 0x401bc8
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 0x401dae
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 0x401dae
mov ebp, dword [esp + 0x38]
nop dword [eax]
mov edi, dword [esp + 0x14]
test al, al
jle 0x401db6
movsx ecx, al
mov eax, ebx
sub eax, edi
cmp ecx, eax
jae 0x401db6
mov edi, dword [esp + 0x48]
sub ebx, ecx
cmp edi, ebx
jb 0x401fe7
mov esi, dword [esp + 0x4c]
mov eax, esi
sub eax, edi
mov dword [esp + 0x18], esi
cmp eax, 1
jb 0x401c75
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.0040bde0
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov word [esi], ax
mov ebp, dword [esp + 0x38]
jmp 0x401d90
mov eax, 0x7ffffffe
sub eax, edi
cmp eax, 1
jb 0x401fe2
lea ecx, [edi + 1]
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x401c9a
mov ecx, 0x7ffffffe
jmp 0x401cb8
mov edx, esi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x401cb0
mov ecx, 0x7ffffffe
jmp 0x401cb8
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 0x401d56
mov esi, dword [esp + 0x3c]
push esi
push ebp
call fcn.0040bde0
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.0040bde0
mov eax, dword [esp + 0x30]
add esp, 0x18
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x401d4a
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x401fec
mov esi, edx
push ecx
push esi
call fcn.0040ab36
add esp, 8
jmp 0x401d8c
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.0040bde0
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.0040bde0
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 0x401c00
jmp 0x401db2
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 0x401dd5
jg 0x401dcd
test esi, esi
je 0x401dd5
cmp esi, ebx
jbe 0x401dd5
sub esi, ebx
jmp 0x401dd7
xor esi, esi
mov eax, dword [eax + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x401eab
cmp eax, 0x100
je 0x401e4e
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.00404cf0
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.00404c60
add esp, 0x30
jmp 0x401ed8
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.00404c60
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.00404cf0
add esp, 0x30
xor esi, esi
jmp 0x401edf
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.00404c60
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.00404c60
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.00404cf0
mov ecx, dword [esp + 0x94]
add esp, 0x30
cmp ecx, 0xf
jbe 0x401f7e
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401f74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fec
push ecx
push edx
call fcn.0040ab36
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 0x401fcb
mov edx, dword [esp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401fc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fec
push ecx
push edx
call fcn.0040ab36
add esp, 8
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ab49
add esp, 0x5c
ret 0x20
call fcn.00404df0
call fcn.00404e10
call fcn.0040f5af
int3