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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59a2b8
sub esp, 0x48
lea edi, [esp + 0x58]
xor eax, eax
call fcn.00461349
lea edi, [esp + 0x2c]
call fcn.00461349
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
mov ebx, dword [esp + 0x50]
cmp ebx, edx
jbe 0x599daa
mov edx, dword [0x7bb130]
mov ebp, dword [0x7bb134]
xor ebx, ebx
mov esi, ebp
mov ebp, edx
mov edx, dword [esp + 0x50]
jmp 0x599de8
mov edx, dword [ecx + 0x28c]
mov ebp, dword [ecx + 0x288]
mov esi, ebp
mov ebp, dword [ecx + 0x290]
cmp ebx, edx
ja 0x59a2ae
sub edx, ebx
sub ebp, ebx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, ebx
cmp edx, 3
jbe 0x59a2a2
mov edx, ebx
mov ebx, dword [ebp + esi]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x2c], ebx
test ebp, ebp
jne 0x59a214
lea ebp, [edx + 4]
mov esi, ebx
mov ebx, dword [ecx + 0x2ac]
add ebx, 0xfffffffe
cmp ebx, ebp
jae 0x599e18
mov ebx, dword [0x7bb130]
mov ebp, dword [0x7bb134]
mov edi, edx
xor edx, edx
jmp 0x599e5f
mov ebx, dword [ecx + 0x28c]
mov edi, edx
mov edx, dword [ecx + 0x288]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x290]
cmp ebx, ebp
jb 0x59a299
sub edx, edi
sub ebx, edi
add edx, 0xfffffffc
neg edx
sar edx, 0x1f
and ebp, edx
lea edx, [ebx - 4]
cmp edx, 1
jbe 0x59a28d
mov edx, dword [esp + 0x28]
movzx edx, word [ebp + edx]
xor ebx, ebx
xor ebp, ebp
mov word [esp + 0x30], dx
test ebx, ebx
jne 0x59a1f6
mov word [esp + 0x1e], dx
lea ebx, [edi + 6]
mov ebp, dword [ecx + 0x2ac]
add ebp, 0xfffffffe
cmp ebp, ebx
jae 0x599e98
mov ebx, dword [0x7bb130]
mov ebp, dword [0x7bb134]
xor eax, eax
mov word [esp + 0x1c], ax
xor eax, eax
jmp 0x599ee6
mov ebp, dword [ecx + 0x28c]
mov edx, dword [ecx + 0x288]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x290]
cmp ebp, ebx
jb 0x59a284
sub ebp, edi
sub edx, edi
add edx, 0xfffffffa
neg edx
sar edx, 0x1f
and ebx, edx
lea edx, [ebp - 6]
cmp edx, 1
jbe 0x59a278
mov edx, dword [esp + 0x28]
movzx edx, word [ebx + edx]
mov word [esp + 0x1c], dx
xor ebx, ebx
xor ebp, ebp
movzx edx, word [esp + 0x1e]
mov dword [esp + 0x24], ebp
movzx ebp, word [esp + 0x1c]
mov word [esp + 0x32], bp
test ebx, ebx
jne 0x59a1cf
lea ebx, [edi + 8]
mov ebp, dword [ecx + 0x2ac]
add ebp, 0xfffffffc
cmp ebp, ebx
jae 0x599f22
mov ebx, dword [0x7bb130]
mov ebp, dword [0x7bb134]
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x599f6e
mov ebp, dword [ecx + 0x28c]
mov edx, dword [ecx + 0x288]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x290]
cmp ebp, ebx
jb 0x59a26f
sub edx, edi
sub ebp, edi
add edx, 0xfffffff8
neg edx
sar edx, 0x1f
and ebx, edx
lea edx, [ebp - 8]
cmp edx, 3
jbe 0x59a263
mov edx, dword [esp + 0x28]
mov edx, dword [ebx + edx]
xor ebx, ebx
mov dword [esp + 0x20], edx
xor ebp, ebp
movzx edx, word [esp + 0x1e]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x34], ebp
test ebx, ebx
jne 0x59a19f
lea eax, [edi + 0xc]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp edx, eax
jae 0x599fa2
mov eax, dword [0x7bb130]
mov edx, dword [0x7bb134]
xor ebx, ebx
jmp 0x599fe1
mov edx, dword [ecx + 0x28c]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [ecx + 0x290]
cmp edx, eax
jb 0x59a25c
sub ebp, edi
sub edx, edi
add ebp, 0xfffffff4
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add edx, 0xfffffff4
cmp edx, 3
jbe 0x59a250
mov ebx, dword [eax + ebx]
xor eax, eax
xor edx, edx
mov dword [esp + 0x38], ebx
test eax, eax
jne 0x59a186
mov dword [esp], ecx
lea eax, [edi + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.005a8e60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
test edx, edx
jne 0x59a16d
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x50]
mov eax, ebx
add ebx, ebp
mov ecx, ebx
lea ebx, [ebp + eax + 0x10]
mov edx, ebp
lea ebp, [ebp + eax + 0x11]
mov esi, ebx
mov ebx, dword [esp + 0x4c]
cmp dword [ebx + 0x2ac], ebp
jae 0x59a05c
mov ebp, dword [0x7bb130]
mov esi, ebx
mov ebx, dword [0x7bb134]
xor edi, edi
jmp 0x59a09e
mov edi, ebp
mov ebp, dword [ebx + 0x290]
mov ebx, dword [ebx + 0x288]
cmp ebp, edi
jb 0x59a247
cmp edi, esi
jb 0x59a23e
sub ebp, ecx
mov edi, edx
lea edx, [ebp - 0x10]
neg edx
sar edx, 0x1f
and esi, edx
movzx edx, byte [ebx + esi]
mov esi, dword [esp + 0x4c]
xor ebp, ebp
xor ebx, ebx
mov esi, edx
mov edx, edi
mov edi, esi
mov esi, dword [esp + 0x4c]
xchg edi, eax
mov byte [esp + 0x44], al
xchg edi, eax
test ebp, ebp
jne 0x59a154
lea eax, [edx + eax + 0x12]
mov edx, dword [esi + 0x2ac]
add edx, 0xfffffffe
cmp eax, edx
jbe 0x59a0cd
mov eax, dword [0x7bb130]
mov ecx, dword [0x7bb134]
xor edx, edx
jmp 0x59a10d
mov edx, dword [esi + 0x28c]
mov ebx, dword [esi + 0x288]
mov ebp, dword [esi + 0x290]
cmp edx, eax
jb 0x59a237
sub ebp, ecx
sub edx, ecx
add ebp, 0xffffffee
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
lea ecx, [edx - 0x12]
cmp ecx, 1
jbe 0x59a22d
movzx edx, word [eax + ebx]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov word [esp + 0x46], dx
test eax, eax
je 0x59a137
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.0046181a
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.0046181a
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.0046181a
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebx
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.0046181a
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.0046181a
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
add esp, 0x48
ret
lea edi, [esp + 0x58]
call fcn.00461349
mov dword [esp + 0x58], esi
mov word [esp + 0x5c], dx
movzx ecx, word [esp + 0x1c]
mov word [esp + 0x5e], cx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x74], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
lea edi, [esp + 0x58]
call fcn.00461349
mov dword [esp + 0x58], esi
mov word [esp + 0x5c], dx
mov word [esp + 0x5e], bp
mov dword [esp + 0x74], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
lea edi, [esp + 0x58]
call fcn.00461349
mov dword [esp + 0x58], esi
mov word [esp + 0x5c], dx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
add esp, 0x48
ret
lea edi, [esp + 0x58]
call fcn.00461349
mov dword [esp + 0x58], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], esi
add esp, 0x48
ret
mov eax, 1
call fcn.00461150
mov ecx, edx
call fcn.004611c0
mov eax, esi
mov ecx, edi
call fcn.004611c0
mov ecx, edi
mov edx, ebp
call fcn.004611a0
mov eax, 3
mov ecx, edx
call fcn.00461150
mov ecx, edx
call fcn.004611c0
mov eax, 3
mov ecx, edx
call fcn.00461150
mov eax, ebx
mov ecx, ebp
call fcn.004611c0
mov eax, 1
mov ecx, edx
call fcn.00461150
mov eax, ebx
mov ecx, ebp
call fcn.004611c0
mov eax, 1
mov ecx, edx
call fcn.00461150
mov eax, ebp
mov ecx, ebx
call fcn.004611c0
mov eax, 3
mov ecx, edx
call fcn.00461150
mov eax, ebx
mov ecx, edx
call fcn.004611c0
nop
call fcn.0045fcc0
jmp fcn.00599d50