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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x59bc86
sub esp, 0x94
lea edi, [esp + 0x60]
lea esi, [0x66d000]
call fcn.0044a5b8
xor eax, eax
lea ecx, [esp + 0x60]
mov edx, eax
xor ebx, ebx
mov ebp, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x84], ecx
cmp eax, 2
jge 0x59b63e
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov ebp, dword [esp + 0xa0]
cmp edx, ebp
xchg esi, ebx
seta bl
xchg esi, ebx
mov edi, dword [esp + 0xa4]
cmp ebx, edi
sete cl
and esi, ecx
cmp ebx, edi
setg cl
or esi, ecx
xchg esi, eax
test al, al
xchg esi, eax
je 0x59bc74
mov ecx, edi
mov edx, ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
sub edx, ebp
mov dword [esp + 0x5c], edx
lea esi, [0x60ce40]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
call fcn.00437130
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x7c], edx
mov ebx, dword [esp + 0x98]
mov ebp, dword [ebx + 0x14]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0x3c]
sub edi, ebx
mov edi, dword [esp + 0xa4]
mov esi, dword [esp + 0x40]
sbb edi, esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x9c]
mov dword [esp], edi
call ebp
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
test ecx, ecx
je 0x59b5ae
mov edx, dword [0x76ad20]
cmp ecx, edx
jne 0x59bc4c
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [0x76ad24]
mov ebx, dword [0x76ad20]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.00402240
movzx eax, byte [esp + 0x10]
test al, al
je 0x59bc4c
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edx
call fcn.0059c490
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x59bc0a
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x59bbde
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x40]
cmp ecx, edx
sete dl
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x3c]
cmp ebx, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
and edx, ebp
test dl, dl
jne 0x59bbde
mov esi, dword [esp + 0x84]
add esi, 8
inc eax
mov ecx, esi
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x84], ecx
cmp eax, 2
jl 0x59b49f
mov ecx, ebp
mov esi, ebx
mov ebp, edx
xor eax, eax
xor edx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
cmp ecx, 4
jb 0x59bbd7
lea ebx, [ebp - 5]
sar ebx, 0x1f
xor ebx, 0xffffffff
and ebx, 4
add ebx, esi
mov dword [esp + 0x88], ebx
add ecx, 0xfffffffc
mov dword [esp + 0x8c], ecx
lea ecx, [ebp - 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
cmp ecx, 1
jbe 0x59bbd0
movzx esi, word [ebx]
mov dword [esp + 0x5c], esi
add ecx, 0xfffffffe
mov dword [esp + 0x8c], ecx
lea ecx, [ebp - 6]
mov dword [esp + 0x90], ecx
lea ecx, [ebp - 7]
sar ecx, 0x1f
xor ecx, 0xffffffff
and ecx, 2
lea ebp, [ecx + ebx]
mov dword [esp + 0x88], ebp
mov edi, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
cmp edx, 1
jbe 0x59bbc9
movzx ecx, word [ebx + ecx]
mov dword [esp + 0x54], ecx
add edx, 0xfffffffe
mov dword [esp + 0x8c], edx
lea edx, [edi - 2]
mov dword [esp + 0x90], edx
lea edx, [edi - 3]
sar edx, 0x1f
xor edx, 0xffffffff
and edx, 2
lea ebx, [ebp + edx]
mov dword [esp + 0x88], ebx
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
cmp eax, 1
jbe 0x59bbc2
movzx edx, word [ebp + edx]
mov dword [esp + 0x50], edx
add eax, 0xfffffffe
mov dword [esp + 0x8c], eax
lea eax, [edi - 2]
mov dword [esp + 0x90], eax
lea eax, [edi - 3]
sar eax, 0x1f
xor eax, 0xffffffff
and eax, 2
lea ebp, [ebx + eax]
mov dword [esp + 0x88], ebp
mov edi, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
cmp edx, 1
jbe 0x59bbbb
movzx eax, word [ebx + eax]
mov dword [esp + 0x4c], eax
add edx, 0xfffffffe
mov dword [esp + 0x8c], edx
lea edx, [edi - 2]
mov dword [esp + 0x90], edx
lea edx, [edi - 3]
sar edx, 0x1f
xor edx, 0xffffffff
and edx, 2
lea ebx, [ebp + edx]
mov dword [esp + 0x88], ebx
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
cmp eax, 3
jbe 0x59bbb4
mov edx, dword [ebp + edx]
mov dword [esp + 0x48], edx
add eax, 0xfffffffc
mov dword [esp + 0x8c], eax
lea eax, [edi - 4]
mov dword [esp + 0x90], eax
lea eax, [edi - 5]
sar eax, 0x1f
xor eax, 0xffffffff
and eax, 4
lea ebp, [ebx + eax]
mov dword [esp + 0x88], ebp
mov edi, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
cmp edx, 3
jbe 0x59bbad
mov eax, dword [ebx + eax]
mov dword [esp + 0x44], eax
add edx, 0xfffffffc
mov dword [esp + 0x8c], edx
lea edx, [edi - 4]
mov dword [esp + 0x90], edx
lea edx, [edi - 5]
sar edx, 0x1f
xor edx, 0xffffffff
and edx, 4
lea ebx, [ebp + edx]
mov dword [esp + 0x88], ebx
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
cmp eax, 1
jbe 0x59bba6
movzx edx, word [ebp + edx]
mov word [esp + 0x26], dx
add eax, 0xfffffffe
mov dword [esp + 0x8c], eax
lea eax, [edi - 2]
mov dword [esp + 0x90], eax
lea eax, [edi - 3]
sar eax, 0x1f
xor eax, 0xffffffff
and eax, 2
add eax, ebx
mov dword [esp + 0x88], eax
lea eax, [0x6365c0]
mov dword [esp], eax
call fcn.0040cd50
mov eax, dword [esp + 4]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], 0
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], 0
movzx ecx, word [esp + 0x26]
mov word [eax + 0x28], cx
test byte [eax], al
movzx ecx, cx
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
cmp ecx, ebx
jg 0x59bb33
cmp ecx, edx
ja 0x59bb2c
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0043a6b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x78]
mov dword [edx + 0x30], eax
mov eax, dword [0x77c810]
lea ebx, [edx + 0x2c]
test eax, eax
jne 0x59bb17
mov dword [edx + 0x2c], ecx
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
test eax, eax
sete al
cmp ecx, 0xffff
sete cl
and eax, ecx
test al, al
je 0x59bada
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov ecx, dword [esp + 0x9c]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
call fcn.0059bc90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x59ba79
test ebx, ebx
jne 0x59ba59
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
test ecx, ecx
setb bl
test edx, edx
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebx, ebp
test edx, edx
xchg ebp, ebx
setl bl
xchg ebp, ebx
or ebx, ebp
test bl, bl
je 0x59ba0a
mov eax, dword [0x76ab4c]
mov ecx, dword [0x76ab48]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x94
ret
mov ebx, dword [esp + 0xa0]
cmp ecx, ebx
setae cl
mov ebx, dword [esp + 0xa4]
cmp edx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ecx, ebp
cmp edx, ebx
setg dl
or ecx, edx
test cl, cl
je 0x59ba35
jmp 0x59b9de
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x94
ret
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], edx
add esp, 0x94
ret
test ecx, ecx
xchg ebp, ebx
sete bl
xchg ebp, ebx
test eax, eax
xchg esi, ebx
setae bl
xchg esi, ebx
and ebp, esi
test ecx, ecx
xchg esi, ebx
setg bl
xchg esi, ebx
or ebp, esi
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x59baa3
jmp 0x59b9ad
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
call fcn.0059bfd0
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x59b9ad
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
sete cl
cmp eax, 0xffff
sete al
and ecx, eax
test cl, cl
jne 0x59b96b
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
cmp eax, 0xffffffff
sete al
test ecx, ecx
sete cl
and eax, ecx
test al, al
je 0x59b9b5
jmp 0x59b96b
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040d580
mov edx, dword [esp + 0x78]
jmp 0x59b94d
call fcn.004246c0
ud2
lea eax, [0x617560]
mov dword [esp], eax
call fcn.0040cd50
mov eax, dword [esp + 4]
mov dword [esp + 0x80], eax
mov dword [eax + 4], 0x1b
mov ecx, dword [0x77c810]
test ecx, ecx
jne 0x59bb8b
lea ecx, [0x6531f0]
mov dword [eax], ecx
mov dword [esp + 0xa8], 0
lea ecx, [0x741b60]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x94
ret
mov dword [esp], eax
lea ecx, [0x6531f0]
mov dword [esp + 4], ecx
call fcn.0040d580
mov eax, dword [esp + 0x80]
jmp 0x59bb65
call fcn.00424660
ud2
call fcn.00424660
ud2
call fcn.00424660
ud2
call fcn.00424660
ud2
call fcn.00424660
ud2
call fcn.00424660
ud2
call fcn.00424660
ud2
call fcn.004246c0
ud2
mov eax, dword [0x76ab4c]
mov ecx, dword [0x76ab48]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x94
ret
mov ecx, dword [esp + 0x34]
cmp eax, ecx
ja 0x59bc45
mov edx, dword [esp + 0x5c]
mov ebx, eax
add eax, edx
sub ecx, ebx
mov ebp, dword [esp + 0x38]
sub ebp, ebx
lea esi, [ebp - 1]
sar esi, 0x1f
xor esi, 0xffffffff
and esi, ebx
mov edi, dword [esp + 0x7c]
add esi, edi
mov edi, ebx
sar ebx, 0x1f
add edi, edx
mov edx, dword [esp + 0x58]
adc edx, ebx
jmp 0x59b648
call fcn.004246c0
ud2
mov dword [esp + 0xa8], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xb0], eax
add esp, 0x94
ret
mov ecx, edi
mov edi, ebx
mov ebp, edx
mov edx, dword [esp + 0xa0]
jmp 0x59b4d7
call fcn.00448420
jmp fcn.0059b450