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

Disassembly:
mov ecx, dword [0x817cc4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x59518b
sub esp, 0x88
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 0x10]
test edx, edx
jne 0x594852
xor ecx, ecx
xor ebx, ebx
mov esi, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
xor eax, eax
jmp 0x594884
mov eax, dword [edx]
mov dword [esp], ecx
mov ebx, dword [esp + 0x90]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], ebx
call eax
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x8c]
movzx edi, byte [edx + 5]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x595178
mov dword [esp + 0x64], ebp
mov dword [esp + 0x40], esi
mov byte [esp + 0x23], al
test ecx, ecx
jne 0x594912
movzx edi, byte [edx + 4]
xchg edi, eax
test al, al
xchg edi, eax
je 0x594912
test esi, esi
jne 0x594912
lea eax, [0x5c4140]
mov dword [esp], eax
call fcn.0040bd60
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov ecx, dword [0x817f20]
test ecx, ecx
jne 0x5948e0
mov ecx, dword [esp + 0x64]
jmp 0x5948eb
call fcn.00466d10
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], 2
lea edx, [0x5d7522]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x8c]
mov ebp, ecx
mov esi, dword [esp + 0x40]
lea ecx, [0x6df858]
mov ebx, eax
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x68]
xor eax, eax
call fcn.00466f58
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], esi
movzx eax, byte [esp + 0x23]
mov ecx, dword [esp + 0x34]
jmp 0x594949
mov edx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x64]
mov ecx, ebx
mov ebx, eax
mov eax, esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x34], ecx
mov edi, dword [esp + 0x7c]
lea ebp, [esp + 0x68]
cmp dword [ebp + 4], edi
jle 0x594c81
mov byte [esp + 0x23], al
mov dword [esp], ebp
call fcn.00595b20
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x594a19
mov edx, dword [esp + 0x34]
test edx, edx
je 0x59499a
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
lea ebp, [0x5d7522]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
jmp 0x594a0f
mov ebx, dword [esp + 0x8c]
movzx ebp, byte [ebx + 4]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5949c3
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
lea ebp, [0x5d7522]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
jmp 0x594a0f
lea eax, [0x5c4140]
mov dword [esp], eax
call fcn.0040bd60
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov edx, dword [0x817f20]
test edx, edx
jne 0x5949ec
mov edx, dword [esp + 0x64]
jmp 0x5949f7
call fcn.00466d10
mov edx, dword [esp + 0x64]
mov dword [edi], edx
mov dword [eax], edx
mov dword [eax + 0xc], 2
lea ebp, [0x5d7522]
mov dword [eax + 8], ebp
lea ebx, [0x6df858]
movzx esi, byte [esp + 0x23]
jmp 0x594be9
mov edx, dword [esp + 4]
cmp ecx, 4
jge 0x594a26
xor eax, eax
jmp 0x594a55
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], ecx
mov dword [esp], edx
lea eax, [0x5d7860]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
call fcn.00403080
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
test al, al
jne 0x594a9d
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x594a69
mov ecx, ebx
mov ebx, dword [esp + 0x54]
jmp 0x594a88
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00595f20
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
movzx edx, byte [esp + 0x23]
mov eax, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x8c]
jmp 0x594bd5
cmp ecx, 4
jb 0x59515d
lea eax, [ecx - 4]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 4
add eax, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005963c0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x594afb
mov edx, dword [esp + 0x34]
test edx, edx
je 0x594ad9
mov eax, edx
mov ebx, dword [esp + 0x54]
jmp 0x594add
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
lea ebp, [0x5d7522]
movzx esi, byte [esp + 0x23]
mov edi, ebx
mov ebx, eax
mov eax, edi
jmp 0x594be9
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
movzx edx, byte [esp + 0x23]
test dl, dl
je 0x594b1b
mov edx, 1
jmp 0x594b3a
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0058de00
mov eax, dword [esp + 8]
test eax, eax
setne al
mov ecx, dword [esp + 0x24]
mov edx, eax
mov eax, dword [esp + 0x48]
mov byte [esp + 0x23], dl
lea ebx, [esp + 0x68]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00595c00
mov eax, dword [esp + 0x34]
test eax, eax
je 0x594b67
mov ebx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x54]
jmp 0x594ba5
mov ebx, dword [esp + 0x8c]
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x594b7b
mov ecx, dword [esp + 0x54]
jmp 0x594ba5
mov eax, dword [edx]
mov dword [esp], ebx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x24]
mov dword [esp + 8], ebp
call eax
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov eax, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x8c]
test eax, eax
jne 0x594bd0
mov dword [esp], ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
call fcn.00595f20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x8c]
movzx edx, byte [esp + 0x23]
lea ebp, [0x5d7522]
mov esi, edx
mov ebx, eax
mov eax, ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x84]
lea ebp, [edi + 1]
mov dword [esp + 0x84], ebp
mov edx, dword [esp + 0x70]
test edx, edx
je 0x594c42
mov ecx, dword [esp + 0x74]
cmp ecx, ebp
jle 0x594c2c
mov dword [esp + 0x60], eax
lea eax, [ecx - 1]
cmp eax, ebp
jne 0x594c39
cmp ecx, ebp
jbe 0x595156
lea eax, [edx + edi*8 + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x594c39
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x7c], ecx
jmp 0x594934
mov eax, dword [esp + 0x60]
jmp 0x594934
mov edx, dword [esp + 0x80]
lea ebp, [edx + 1]
mov dword [esp + 0x7c], ebp
mov edi, dword [esp + 0x6c]
lea ecx, [edi - 1]
cmp ecx, ebp
jne 0x594934
cmp edi, ebp
jbe 0x59514d
mov ecx, dword [esp + 0x68]
lea ecx, [edx + ecx + 1]
cmp byte [ecx], 0x2e
jne 0x594934
mov dword [esp + 0x7c], edi
jmp 0x594934
test al, al
je 0x594cb3
mov eax, dword [edx + 0x14]
test eax, eax
je 0x594cb3
test ecx, ecx
jne 0x594cb3
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
jmp 0x59501f
movzx eax, byte [esp + 0x98]
test al, al
je 0x594ce2
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
jmp 0x594e2e
mov ebp, dword [esp + 0x70]
test ebp, ebp
jne 0x594cf6
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
test al, al
jmp 0x594d49
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x6dddc8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004ad1f0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
movzx eax, byte [esp + 0x98]
test al, al
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x5c]
je 0x594df7
movzx eax, byte [edx + 4]
test al, al
je 0x594ded
test ecx, ecx
je 0x594d6c
mov edx, ebp
mov eax, ebx
mov ebx, ecx
mov ecx, esi
jmp 0x594dff
test esi, esi
je 0x594d82
lea eax, [esi + ebp - 1]
cmp byte [eax], 0x2e
jne 0x594d80
lea eax, [esi - 1]
test esi, esi
jmp 0x594d84
test esi, esi
mov eax, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], ebp
je 0x594d95
cmp eax, 0xfd
jle 0x594de3
lea eax, [0x5c4140]
mov dword [esp], eax
call fcn.0040bd60
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov edx, dword [0x817f20]
test edx, edx
jne 0x594dbe
mov edx, dword [esp + 0x44]
jmp 0x594dc9
call fcn.00466d10
mov edx, dword [esp + 0x44]
mov dword [edi], edx
mov dword [eax], edx
mov dword [eax + 0xc], 2
lea ebp, [0x5d7522]
mov dword [eax + 8], ebp
lea ebx, [0x6df858]
jmp 0x594dff
mov edx, ebp
mov eax, ebx
mov ebx, ecx
mov ecx, esi
jmp 0x594dff
mov edx, ebp
mov eax, ebx
mov ebx, ecx
mov ecx, esi
jmp 0x594dff
mov edx, ebp
mov eax, ebx
mov ebx, ecx
mov ecx, esi
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], eax
add esp, 0x88
ret
movzx eax, byte [esp + 0x98]
mov ecx, edx
mov edx, ebp
mov ebp, dword [esp + 0x7c]
lea esi, [esp + 0x68]
cmp dword [esi + 4], ebp
jle 0x594ce2
mov dword [esp + 0x58], ebx
mov dword [esp + 0x38], ecx
mov dword [esp], esi
call fcn.00595b20
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
xor edx, edx
jmp 0x594fed
lea edx, [0x5d7860]
mov dword [esp], edx
mov dword [esp + 4], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.00596ce0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x594e8d
mov ecx, eax
mov ebx, dword [esp + 0x58]
jmp 0x594e95
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ebp, [esp + 0x68]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00595c00
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x54]
jmp 0x594edb
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x8c]
movzx esi, byte [ebp + 4]
xchg esi, eax
test al, al
xchg esi, eax
je 0x594f56
test edx, edx
jne 0x594f56
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x594f01
cmp ecx, 0x3f
jle 0x594f56
lea eax, [0x5c4140]
mov dword [esp], eax
call fcn.0040bd60
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [0x817f20]
test ecx, ecx
jne 0x594f2a
mov edx, dword [esp + 0x4c]
jmp 0x594f35
call fcn.00466d10
mov edx, dword [esp + 0x4c]
mov dword [edi], edx
mov dword [eax], edx
mov dword [eax + 0xc], 2
lea ebp, [0x5d7522]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x8c]
lea edx, [0x6df858]
mov ebx, eax
mov esi, dword [esp + 0x84]
lea eax, [esi + 1]
mov dword [esp + 0x84], eax
mov edi, dword [esp + 0x70]
test edi, edi
je 0x594fb1
mov ecx, dword [esp + 0x74]
cmp ecx, eax
jle 0x594f98
lea ebp, [ecx - 1]
cmp ebp, eax
jne 0x594fa5
cmp ecx, eax
jbe 0x595007
lea eax, [edi + esi*8 + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x594fa5
mov ebp, dword [esp + 0x8c]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
jmp 0x594e22
mov ebp, dword [esp + 0x8c]
jmp 0x594e22
mov esi, dword [esp + 0x80]
lea eax, [esi + 1]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x6c]
lea edi, [ecx - 1]
cmp edi, eax
jne 0x594e22
cmp ecx, eax
jbe 0x595002
mov eax, dword [esp + 0x68]
lea eax, [esi + eax + 1]
cmp byte [eax], 0x2e
jne 0x594e22
mov dword [esp + 0x7c], ecx
jmp 0x594e22
inc edx
cmp edx, ecx
jge 0x594ed3
lea ebx, [edx + eax]
cmp byte [ebx], 0x80
jb 0x594fec
jmp 0x594e5f
call fcn.00466d70
call fcn.00466d70
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x7c]
lea ebp, [esp + 0x68]
cmp dword [ebp + 4], eax
jle 0x594cb3
mov dword [esp], ebp
call fcn.00595b20
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + 0x14]
mov ecx, dword [edx]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
mov dword [esp], ebx
mov dword [esp + 4], ebp
call ecx
movzx eax, byte [esp + 8]
test al, al
je 0x5950e9
mov edx, dword [esp + 0x84]
lea eax, [edx + 1]
mov dword [esp + 0x84], eax
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x5950ae
mov ecx, dword [esp + 0x74]
cmp ecx, eax
jle 0x5950a1
lea ebp, [ecx - 1]
cmp ebp, eax
jne 0x59500c
cmp ecx, eax
jbe 0x595148
lea eax, [ebx + edx*8 + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x59500c
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
jmp 0x59500c
mov edx, dword [esp + 0x80]
lea eax, [edx + 1]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x6c]
lea ebx, [ecx - 1]
cmp ebx, eax
jne 0x59500c
cmp ecx, eax
jbe 0x595143
mov eax, dword [esp + 0x68]
lea eax, [edx + eax + 1]
cmp byte [eax], 0x2e
jne 0x59500c
mov dword [esp + 0x7c], ecx
jmp 0x59500c
lea eax, [0x5c4140]
mov dword [esp], eax
call fcn.0040bd60
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [0x817f20]
test ecx, ecx
jne 0x595112
mov ecx, dword [esp + 0x64]
jmp 0x59511d
call fcn.00466d10
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], 1
lea edx, [0x6dde20]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x8c]
lea ecx, [0x6df858]
mov ebx, eax
jmp 0x594cb3
call fcn.00466d70
call fcn.00466d70
mov eax, ebp
mov ecx, edi
call fcn.00466d70
mov eax, ebp
call fcn.00466d70
mov eax, 4
call fcn.00466dd0
dec esi
mov edi, esi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 1
add ebp, edi
test esi, esi
je 0x594899
cmp byte [ebp], 0x2e
je 0x595167
jmp 0x594899
call fcn.00465910
jmp fcn.00594810