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

Disassembly:
sub esp, 0x94
mov eax, dword [0x57f014]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa8]
mov ebp, dword [edi]
mov ebx, dword [edi + 4]
mov esi, dword [edi + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x14]
mov dword [ecx], 0
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x58], ecx
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebx
test eax, eax
jg 0x4017a9
mov eax, 1
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d4a21
add esp, 0x94
ret
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0x2c
lea edx, [esp + 0x64]
push 0
push edx
call fcn.004d7120
or eax, 0xffffffff
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
movzx ecx, byte [esi]
push eax
push ecx
mov dword [esp + 0x2c], 0
call fcn.00403580
add esp, 0x14
test eax, eax
je 0x401920
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x64]
push eax
push ecx
push esi
call fcn.004037f0
mov ecx, dword [esp + 0x7c]
mov eax, ecx
sub eax, dword [esp + 0x78]
add esp, 0x10
sub dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
je 0x40183b
cmp eax, 0xf
jne 0x401908
mov edx, dword [edi + 0x1c]
not edx
test dl, 4
je 0x4018fd
mov edi, dword [esp + 0x10]
mov edx, ecx
sub edx, esi
add edi, edx
cmp edi, dword [esp + 0xb4]
ja 0x401c09
mov edi, esi
cmp dword [esp + 0x1c], ecx
jae 0x4018eb
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov ecx, eax
imul eax, eax, 0xa8
shl ecx, 6
add ecx, esi
add eax, esi
add dword [esp + 0x10], edx
jmp 0x401898
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0xac], 0
mov esi, eax
jne 0x4018a6
mov esi, ecx
push 0x40
add eax, 0xa8
add ecx, 0x40
push 0
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
call fcn.004d7120
mov eax, 0xffff
mov word [esi + 0x18], ax
mov cl, byte [edi]
add esp, 0xc
inc edi
mov dword [esi + 0x10], ebp
add ebp, 1
mov dword [esi + 0x14], ebx
adc ebx, 0
mov byte [esi], cl
mov byte [esi + 0x32], 1
cmp edi, dword [esp + 0x6c]
jb 0x401890
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov dword [ecx], edx
cmp dword [esp + 0x14], 0
je 0x401783
add esi, eax
add dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
adc dword [esp + 0x24], 0
cmp eax, 0xf
je 0x401be7
cmp dword [esp + 0x58], 2
jne 0x40197b
test dword [esp + 0x60], 0x2000000
je 0x40195a
dec esi
cmp dword [esp + 0x74], esi
je 0x40195a
and dword [esp + 0x60], 0xfdffffff
lea edx, [esp + 0x60]
push 0
push edx
mov dword [esp + 0x80], 0
call fcn.00403690
add esp, 8
test dword [esp + 0x60], 0x780
je 0x40197b
and dword [esp + 0x60], 0xfffff87f
lea eax, [esp + 0x60]
push 2
push eax
call fcn.00403690
add esp, 8
mov esi, dword [esp + 0x10]
lea eax, [esi + 1]
cmp eax, dword [esp + 0xb4]
ja 0x401c09
cmp dword [esp + 0xac], 0
je 0x4019a1
imul esi, esi, 0xa8
jmp 0x4019a4
shl esi, 6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esi, dword [esp + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
call fcn.004010c0
add esp, 4
test byte [edi + 0x1c], 4
mov dword [esp + 0x28], eax
je 0x4019e5
test byte [esi + 0x37], 7
jne 0x4019e5
mov dword [esp + 0x28], 4
cmp dword [esp + 0x28], 3
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebx
jne 0x401a4c
test dword [esp + 0x60], 0x20000000
je 0x401a4c
mov eax, dword [esp + 0x78]
cmp eax, 3
jne 0x401a13
mov edx, dword [esp + 0x18]
sub edx, 2
add dword [esp + 0x14], 2
jmp 0x401a29
cmp eax, 2
jne 0x401a25
mov eax, 1
sub dword [esp + 0x18], eax
add dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
lea eax, [edx + ecx - 1]
mov dword [esp + 0x6c], eax
inc eax
mov dword [esp + 0x1c], eax
mov eax, edx
xor ecx, ecx
add eax, ebp
adc ecx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x401a82
mov cl, byte [esi + 0x32]
mov edi, dword [esp + 0x2c]
movzx eax, cl
sub dword [esp + 0x14], eax
cdq
add dword [esp + 0x20], eax
movzx eax, cl
adc dword [esp + 0x24], edx
add dword [esp + 0x1c], eax
add cl, byte [esp + 0x18]
mov eax, dword [esp + 0x28]
mov byte [esi + 0x32], cl
cmp eax, 3
jne 0x401bf7
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x1c]
not eax
test al, 4
je 0x401b4b
dec dword [esp + 0x10]
lea ecx, [edx + 1]
test ecx, ecx
je 0x401b4b
mov eax, dword [esp + 0x10]
lea ecx, [edx + eax + 1]
cmp ecx, dword [esp + 0xb4]
ja 0x401c09
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
inc edx
mov dword [esp + 0x3c], edx
cmp edi, edx
jae 0x401b47
mov esi, eax
imul eax, eax, 0xa8
add eax, dword [esp + 0x30]
mov ecx, esi
shl ecx, 6
add ecx, dword [esp + 0x30]
sub edx, edi
add esi, edx
mov dword [esp + 0x10], esi
jmp 0x401af8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0xac], 0
mov esi, eax
jne 0x401b06
mov esi, ecx
push 0x40
add eax, 0xa8
add ecx, 0x40
push 0
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ecx
call fcn.004d7120
mov edx, 0xffff
mov word [esi + 0x18], dx
mov al, byte [edi]
add esp, 0xc
inc edi
mov dword [esi + 0x10], ebp
add ebp, 1
mov dword [esi + 0x14], ebx
adc ebx, 0
mov byte [esi], al
mov byte [esi + 0x32], 1
cmp edi, dword [esp + 0x3c]
jb 0x401af0
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [ecx], edx
mov ecx, dword [esp + 0x24]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
movzx eax, byte [esi + 0x37]
mov ecx, dword [edi + 0x1c]
and eax, 7
cmp dword [esp + 0x28], 1
jne 0x401be3
test ecx, 0x3f8
je 0x401be3
test cl, 8
je 0x401b8a
cmp eax, 1
je 0x401783
test cl, 0x10
je 0x401b98
cmp eax, 2
je 0x401783
test cl, 0x20
je 0x401ba6
cmp eax, 3
je 0x401783
test cl, 0x40
je 0x401bb4
cmp eax, 4
je 0x401783
test cl, cl
jns 0x401bc1
cmp eax, 5
je 0x401783
test ecx, 0x100
je 0x401bd2
cmp eax, 6
je 0x401783
test ecx, 0x200
je 0x401be3
cmp eax, 7
je 0x401783
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
jg 0x4017a1
jmp 0x401783
cmp eax, 4
jne 0x401b4b
dec dword [esp + 0x10]
jmp 0x401b4b
mov eax, 2
jmp 0x401788