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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x49c
mov edi, dword [esp + 0x4b0]
mov ebx, dword [esp + 0x4b4]
mov eax, dword [0xd47044]
mov dword [esp + 0x48c], eax
xor eax, eax
test edi, edi
je 0x59a290
mov eax, dword [edi + 0x48]
test eax, eax
je 0x59a2b0
mov ebp, dword [edi + 0x28]
test ebp, ebp
je 0x59a2b0
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x59a2b0
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x59a2b0
mov edx, dword [eax + 0x34]
test edx, edx
je 0x59a2e0
cmp dword [eax + 4], 0xffffffff
je 0x59a2f4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x59a300
mov esi, ebx
and esi, 0x1000
je 0x59a2c8
xor ebp, ebp
lea esi, [esp + 0x30]
jmp 0x59a279
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00598b70
test eax, eax
je 0x59a290
cmp dword [esp + 0x2c], ebp
jne 0x59a307
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], edi
call 0x59a320
test eax, eax
je 0x59a290
add ebp, 1
cmp ebp, dword [edi + 0x10]
jae 0x59a300
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.00598010
test eax, eax
jne 0x59a220
lea esi, [esi]
xor eax, eax
mov edx, dword [esp + 0x48c]
sub edx, dword [0xd47044]
jne 0x59a310
add esp, 0x49c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi + 0x1c], 0x18
jmp 0x59a290
add esi, 1
cmp esi, dword [edi + 0x10]
jae 0x59a300
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call 0x59a320
test eax, eax
jne 0x59a2c0
jmp 0x59a290
mov eax, dword [edi + 0x10]
cmp eax, 0xffff
ja 0x59a2f4
cmp dword [edi + 4], 0
jbe 0x59a202
mov dword [edi + 0x1c], 0x1d
jmp 0x59a290
mov eax, 1
jmp 0x59a292
mov dword [edi + 0x1c], 0x1e
jmp 0x59a290
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x540
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x88], 0
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], 0
mov eax, dword [0xd47044]
mov dword [esp + 0x53c], eax
xor eax, eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 1
test ebx, ebx
je 0x59a4b0
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x59a4d0
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x59a4d0
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x59a4d0
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x59a4d0
cmp dword [ebx + 0x10], edi
jb 0x59a4d0
je 0x59a500
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + edi*4]
add ecx, dword [esi]
lea eax, [esp + 0x88]
mov edx, edi
mov dword [esp + 4], eax
lea eax, [esp + 0xc0]
mov dword [esp], eax
mov eax, ebx
call fcn.00595060
test eax, eax
je 0x59a4b0
mov eax, dword [esp + 0x104]
test eax, eax
jne 0x59a4e0
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x74], ecx
or ecx, eax
mov dword [esp + 0x78], eax
je 0x59a4e0
mov eax, dword [esp + 0x108]
test eax, eax
jne 0x59a4f0
test word [esp + 0xd6], 0xfff7
jne 0x59a520
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x59a510
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x10], 0x1e
mov edx, eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x6c], ecx
mov dword [esp], eax
call dword [ebx + 0x38]
mov dword [esp + 0x70], eax
cmp eax, 0x1e
je 0x59a530
mov dword [ebx + 0x1c], 0x14
lea esi, [esi]
nop
xor eax, eax
mov edx, dword [esp + 0x53c]
sub edx, dword [0xd47044]
jne 0x59a783
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x1c], 0x18
jmp 0x59a4b0
mov eax, 1
jmp 0x59a4b2
mov dword [ebx + 0x1c], 5
jmp 0x59a4b0
xor ecx, ecx
jmp 0x59a3d7
mov dword [ebx + 0x1c], 6
jmp 0x59a4b0
mov dword [ebx + 0x1c], 4
jmp 0x59a4b0
cmp dword [esp + 0xa0], 0x4034b50
jne 0x59a733
lea ecx, [esp + 0x110]
movzx eax, word [esp + 0xba]
mov dword [esp], ecx
mov dword [esp + 0x60], eax
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x60]
cmp edx, eax
jne 0x59a733
mov eax, edx
xor edx, edx
add eax, dword [esp + 0x68]
adc edx, dword [esp + 0x6c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], edx
add edx, 0x1e
mov dword [esp + 0x5c], ecx
adc ecx, 0
mov dword [esp + 0x54], ecx
movzx ecx, word [esp + 0xbc]
mov dword [esp + 0x50], edx
xor edx, edx
mov eax, ecx
add eax, dword [esp + 0x50]
adc edx, dword [esp + 0x54]
mov dword [esp + 0x4c], ecx
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
mov ecx, edx
mov dword [esp + 0x28], eax
mov edx, eax
mov eax, dword [ebx + 4]
cmp dword [ebx], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
sbb eax, ecx
jb 0x59a733
mov edx, dword [esp + 0xb2]
mov eax, dword [esp + 0xb6]
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], edx
xor edx, edx
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0xa6]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xae]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], edx
mov edx, eax
mov eax, dword [esp + 0x60]
and edx, 8
cmp eax, ecx
mov dword [esp + 0x30], edx
cmovae ecx, eax
test ecx, ecx
jne 0x59a73f
mov dword [esp + 0x94], 0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x59a6e3
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
add eax, 0x1e
mov dword [esp + 0x20], ecx
adc edx, 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
cmp dword [esp + 0x60], eax
mov ecx, dword [esp + 0x20]
jne 0x59a779
mov eax, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
lea eax, [esp + 0x110]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x59a713
cmp dword [esp + 0x4c], 0
je 0x59a6e3
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
not eax
or eax, edx
je 0x59a788
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
not eax
or eax, edx
je 0x59a788
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x34]
jne 0x59a6f8
cmp dword [esp + 0x30], 0
jne 0x59a80b
mov eax, dword [esp + 0x34]
cmp dword [esp + 0xd8], eax
jne 0x59a713
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x5c], eax
je 0x59a9b0
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call dword [ebx + 0x2c]
jmp 0x59a4b0
mov dword [ebx + 0x1c], 9
jmp 0x59a4b0
xor eax, eax
lea edx, [esp + 0x90]
mov dword [esp + 0x20], ecx
mov dword [esp], eax
mov eax, ebx
call fcn.00594b20
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x59a9a3
cmp dword [esp + 0x60], 0
mov dword [esp + 0x94], ecx
je 0x59a6bf
jmp 0x59a655
mov dword [esp + 0x70], 0x14
jmp 0x59a713
call fcn.00401690
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
add eax, 0x1e
mov dword [esp + 0x68], ecx
adc edx, 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
cmp dword [esp + 0x4c], eax
jne 0x59a779
mov ecx, dword [esp + 0x68]
jmp 0x59a7f7
movzx edx, word [ecx]
mov word [esp + 0x68], dx
movzx edx, word [ecx + 2]
lea eax, [edx + 4]
cmp dword [esp + 0x48], eax
jb 0x59a7fe
cmp word [esp + 0x68], 1
je 0x59aa00
add ecx, eax
sub dword [esp + 0x48], eax
je 0x59a6e3
cmp dword [esp + 0x48], 3
ja 0x59a7ca
mov dword [esp + 0x70], 9
jmp 0x59a713
cmp dword [esi + 0x34], 1
mov byte [esp + 0x60], 0
sbb eax, eax
and eax, 0xfffffffe
add eax, 6
lea edx, [eax*4]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x51c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
mov edx, dword [esp + 0x68]
cmp edx, eax
jne 0x59a779
movzx ecx, byte [esp + 0x520]
movzx eax, byte [esp + 0x51c]
cmp dword [esp + 0x51c], 0x8074b50
mov byte [esp + 0x68], cl
je 0x59aa65
mov byte [esp + 0x68], al
lea ecx, [esp + 0x51c]
movzx edx, byte [ecx + 1]
movzx eax, byte [ecx + 2]
shl edx, 8
shl eax, 0x10
or eax, edx
movzx edx, byte [esp + 0x68]
or eax, edx
movzx edx, byte [ecx + 3]
shl edx, 0x18
or eax, edx
cmp dword [esi + 0x34], 0
mov edx, dword [ecx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 8]
jne 0x59a9df
cmp byte [esp + 0x60], 0
jne 0x59a9df
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x50]
cmp dword [esp + 0xd8], eax
jne 0x59a713
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x5c], eax
jne 0x59a713
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x58], eax
jne 0x59a713
mov edx, dword [esp + 0x64]
cmp dword [esp + 0x74], edx
jne 0x59a713
mov edx, dword [esp + 0x60]
cmp dword [esp + 0x78], edx
jne 0x59a713
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call dword [ebx + 0x2c]
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esp + 0x90], xmm0
test dword [esp + 0x7c], 0x2000
jne 0x59a4e0
xor edx, edx
lea eax, [esp + 0x8c]
mov dword [esp + 8], 0x594c30
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00596c30
test eax, eax
je 0x59a4b0
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xd8], eax
je 0x59a4e0
mov dword [ebx + 0x1c], 0x1e
jmp 0x59a4b0
mov dword [esp + 0x70], 0x10
jmp 0x59a713
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x58], eax
jne 0x59a713
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x74], edx
jne 0x59a713
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x78], edx
jne 0x59a713
jmp 0x59a927
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x6c], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jmp 0x59a8de
cmp edx, 0xf
jbe 0x59a7fe
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
cmp dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x50], eax
setne al
cmp dword [esp + 0x34], 0
mov dword [esp + 0x54], edx
sete dl
mov ecx, dword [esp + 0x54]
and eax, edx
mov edx, dword [esp + 0x50]
mov byte [esp + 0x68], al
mov eax, edx
or eax, ecx
movzx eax, byte [esp + 0x68]
sete dl
and al, dl
mov byte [esp + 0x60], al
je 0x59a6f8
mov eax, 6
jmp 0x59a81c
lea ecx, [esp + 0x520]
jmp 0x59a88b