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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x659a00e0
sub esp, 0xac
mov ebx, dword [esp + 0xb0]
test byte [ebx], al
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ebp, dword [0x65a9c0a8]
mov dword [esp + 0x78], ebp
mov ebp, dword [0x659ea068]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea ebp, [0x659a00f0]
mov dword [esp + 0xa4], ebp
lea ebp, [esp + 0x78]
mov dword [esp + 0xa8], ebp
xor eax, eax
xor ecx, ecx
mov edx, 0xffffffff
xor ebp, ebp
xor esi, esi
jmp 0x6599f9d8
mov edi, dword [esp + 0x44]
inc edi
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x58]
mov ebx, ecx
mov eax, edi
mov ecx, edx
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x5c], ecx
cmp eax, 4
jge 0x6599facd
jae 0x659a00d5
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebp
lea edi, [0x659ea560]
mov edi, dword [edi + eax*4]
cmp edi, 0x20
sbb esi, esi
mov ecx, edi
mov ebp, 1
shl ebp, cl
and ebp, esi
mov dword [esp + 0x60], ebp
lea ebp, [0x659ea570]
mov ebp, dword [ebp + eax*4]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x5c]
shl ebp, cl
and ebp, esi
lea esi, [eax + eax*2]
mov edi, dword [ebx + esi*4 + 8]
mov esi, dword [ebx + esi*4]
mov ecx, ebx
mov ebx, dword [esp + 0x60]
add ebx, ebp
cmp edi, ebx
jb 0x659a00cc
cmp ebp, ebx
ja 0x659a00c3
mov dword [esp + 0x5c], ebp
lea ebx, [0x659ea580]
mov ebx, dword [ebx + eax*4]
mov dword [esp + 0x74], ebx
cmp ebx, 0x20
sbb ebx, ebx
sub edi, ebp
xchg edi, ebx
neg ebx
xchg edi, ebx
shl ebp, 3
sar edi, 0x1f
and edi, ebp
lea ebp, [esi + edi]
mov esi, dword [ecx + 0x34]
mov edi, dword [esp + 0x60]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov ecx, dword [esp + 0x74]
shr esi, cl
and esi, ebx
and edi, esi
mov ebx, dword [esp + 0x5c]
cmp edi, ebx
jne 0x6599fa9b
mov ecx, dword [esp + 0x60]
lea edi, [ecx - 1]
and edi, esi
jmp 0x6599faa1
mov ecx, dword [esp + 0x60]
xor edi, edi
mov dword [esp + 0x44], eax
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], edx
mov esi, edi
xor esi, esi
mov dword [esp + 0x30], esi
xor edi, edi
mov dword [esp + 0x64], edi
mov esi, dword [esp + 0x48]
mov edi, esi
jmp 0x6599fbdc
mov edx, dword [ebx + 0x30]
test byte [edx], al
cmp ecx, 0x400
jae 0x6599fbbf
shl ecx, 7
add ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
call fcn.659a2750
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x6599fb7b
mov dword [esp + 0x54], eax
shl ecx, 0xd
mov eax, dword [esp + 0x5c]
mov ebx, eax
shl eax, 0x16
mov dword [esp + 0x70], eax
add ecx, eax
mov ebp, dword [esp + 0xa4]
mov dword [esp], ecx
inc ebx
shl ebx, 0x16
sub ebx, ecx
mov dword [esp + 4], ebx
lea edx, [esp + 0xa4]
call ebp
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xb0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.6599f8a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x54]
shl ecx, 0xd
mov ebx, dword [esp + 0x70]
add ecx, ebx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
add esp, 0xac
ret
mov edx, dword [esp + 0xb0]
mov ecx, dword [edx + 0x28]
mov edx, dword [edx + 0x24]
mov eax, dword [esp + 0x5c]
cmp eax, ecx
jae 0x6599fbba
lea eax, [edx + eax*8]
mov eax, dword [eax + 4]
nop
test eax, 0x80000000
je 0x6599fb9e
nop
je 0x6599fba1
nop
je 0x6599fba4
lea eax, [0x65a1405b]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.659ab0e0
call fcn.659cac90
mov eax, ecx
mov ecx, 0x400
call fcn.659caca0
inc edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x64], esi
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x48]
cmp edi, ecx
jge 0x6599fdb0
jae 0x659a00bc
lea esi, [ebp + edi*8]
mov ebx, dword [esi]
mov dword [esp + 0x6c], ebx
test ebx, ebx
sete bl
mov esi, dword [esi + 4]
mov dword [esp + 0x68], esi
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
and esi, ebx
xchg esi, eax
test al, al
xchg esi, eax
je 0x6599fc19
xor ebx, ebx
mov esi, dword [esp + 0x64]
jmp 0x6599fbcb
mov dword [esp + 0x4c], edi
lea ebx, [0x659ea580]
mov ecx, dword [ebx + eax*4]
cmp ecx, 0x20
sbb ebp, ebp
mov esi, dword [esp + 0xa4]
mov ebx, dword [esp + 0x5c]
add ebx, edi
mov dword [esp + 0x58], ebx
shl ebx, cl
and ebp, ebx
mov dword [esp], ebp
mov ecx, dword [esp + 0x34]
cmp ecx, 0x20
sbb ebx, ebx
mov ebp, 1
shl ebp, cl
and ebx, ebp
shl ebx, 0xd
mov dword [esp + 4], ebx
lea edx, [esp + 0xa4]
call esi
mov eax, dword [esp + 0x68]
test eax, 0x80000000
je 0x6599fc7b
mov ebp, dword [esp + 0x6c]
mov ebx, 0x40000
jmp 0x6599fc87
mov ebx, dword [esp + 0x6c]
mov ebp, ebx
and ebx, 0x3ffff
mov esi, dword [esp + 0x30]
lea edi, [esi + ebx]
mov ecx, ebx
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
jbe 0x6599fd74
test eax, 0x80000000
je 0x6599fcad
mov edx, 0x40000
jmp 0x6599fcc4
mov edi, eax
shl eax, 0xe
mov edx, ebp
shr ebp, 0x12
or eax, ebp
and eax, 0x3ffff
mov ebp, edx
mov edx, eax
mov eax, edi
cmp ebx, edx
jbe 0x6599f9ba
test esi, esi
jne 0x6599fcd7
test eax, 0x80000000
jmp 0x6599fcfd
mov ebp, dword [esp + 0x34]
cmp ebp, 0x20
sbb edi, edi
mov edx, ecx
mov ecx, ebp
mov ebx, 1
shl ebx, cl
and ebx, edi
cmp edx, ebx
jae 0x6599fd4f
test eax, 0x80000000
mov ebx, dword [esp + 0xb4]
je 0x6599fd0d
mov ecx, dword [esp + 0x34]
cmp ecx, 0x20
mov eax, 0x40000
jmp 0x6599fd1c
shr eax, 4
and eax, 0x3ffff
mov ecx, dword [esp + 0x34]
cmp ecx, 0x20
sbb ebp, ebp
mov esi, dword [esp + 0x4c]
lea edi, [esi + 1]
shl edi, cl
and edi, ebp
sub edi, eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xa0]
mov ebx, eax
mov eax, dword [esp + 0x44]
mov eax, edi
mov edi, esi
mov esi, eax
mov eax, dword [esp + 0x44]
jmp 0x6599fbcb
lea eax, [esi + ebx]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xa0]
mov edi, dword [esp + 0x4c]
mov ebx, eax
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x44]
jmp 0x6599fbcb
test esi, esi
jne 0x6599fd8b
mov ecx, dword [esp + 0x34]
cmp ecx, 0x20
sbb eax, eax
mov edx, dword [esp + 0x4c]
shl edx, cl
and edx, eax
jmp 0x6599fd8f
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x38]
jmp 0x6599fdb4
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0xb4]
cmp ebp, edi
jbe 0x6599ff44
test eax, eax
je 0x6599ff25
mov edi, dword [esp + 0x40]
test edi, 0x80000000
je 0x6599fdf0
mov dword [esp + 0x98], eax
mov eax, 0x40000
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x98]
jmp 0x6599fe08
mov ecx, dword [esp + 0x3c]
and ecx, 0x3ffff
test edi, 0x80000000
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x60]
je 0x6599fe23
mov dword [esp + 0x90], eax
mov eax, 0x40000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
jmp 0x6599fe47
shl edi, 0xe
mov ecx, dword [esp + 0x3c]
shr ecx, 0x12
or ecx, edi
and ecx, 0x3ffff
mov edi, dword [esp + 0x40]
test edi, 0x80000000
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x60]
je 0x6599fe50
mov edi, 0x40000
jmp 0x6599fe59
shr edi, 4
and edi, 0x3ffff
mov dword [esp + 0x18], edi
lea ecx, [eax - 1]
mov dword [esp], ecx
call fcn.65987430
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.65987490
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x44]
lea ecx, [0x659ea580]
mov ecx, dword [ecx + eax*4]
mov dword [esp], ecx
call fcn.65987430
mov eax, dword [esp + 0x44]
lea ecx, [0x659ea560]
mov ecx, dword [ecx + eax*4]
mov dword [esp], ecx
call fcn.65987430
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x60]
xor ebx, ebx
jmp 0x6599fff6
mov eax, dword [0x659ea06c]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], eax
add esp, 0xac
ret
mov ecx, dword [esp + 0x78]
lea edx, [0x659ea580]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.6599f8a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x74]
cmp ecx, 0x20
sbb edx, edx
mov ebx, dword [esp + 0x64]
shl ebx, 0xd
mov ebp, dword [esp + 0x5c]
shl ebp, cl
and ebp, edx
lea ecx, [ebp + ebx]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
add esp, 0xac
ret
mov dword [esp + 0x20], esi
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax]
mov dword [esp], edx
call fcn.65987430
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x50]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x60]
cmp ebx, edx
jge 0x659a00a6
jae 0x659a009d
lea ebp, [ecx + ebx*8]
mov esi, dword [ebp + 4]
mov ebp, dword [ebp]
test esi, 0x80000000
je 0x659a001c
mov edi, 0x40000
jmp 0x659a003e
mov edi, ebp
and ebp, 0x3ffff
test esi, 0x80000000
mov dword [esp + 0x88], eax
mov eax, ebp
mov ebp, edi
mov edi, eax
mov eax, dword [esp + 0x88]
je 0x659a0047
mov ebp, 0x40000
jmp 0x659a0077
mov dword [esp + 0x2c], esi
shl esi, 0xe
shr ebp, 0x12
or esi, ebp
and esi, 0x3ffff
mov ebp, dword [esp + 0x2c]
test ebp, 0x80000000
mov dword [esp + 0x80], eax
mov eax, esi
mov esi, ebp
mov ebp, eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
je 0x659a008f
mov esi, 0x40000
jmp 0x6599ff9d
shr esi, 4
and esi, 0x3ffff
jmp 0x6599ff9d
mov eax, ebx
mov ecx, edx
call fcn.659cac90
lea eax, [0x65a1405b]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.659ab0e0
mov eax, edi
call fcn.659cac90
mov eax, ebp
mov ecx, ebx
call fcn.659cacf0
mov ecx, ebx
mov edx, edi
call fcn.659cacd0
mov ecx, 4
call fcn.659cac90
nop
call fcn.659c97c0
jmp fcn.6599f930