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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x530ab5
sub esp, 0x9c
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x5305a5
cmp ecx, 1
jne 0x530387
mov ebx, dword [esp + 0xac]
mov eax, dword [ebx]
mov ebx, dword [esp + 0xa8]
cmp ebx, 2
jl 0x530342
mov ecx, dword [esp + 0xa0]
jmp 0x530373
mov dword [esp + 0x4c], eax
lea eax, [0x5b0460]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 6
call fcn.0043f090
mov eax, dword [esp + 0xc]
mov ecx, eax
mov ebx, 6
mov eax, dword [esp + 0x4c]
mul eax
nop
nop
nop
mov dword [ecx + 4], edx
mov dword [ecx], eax
mov eax, 2
jmp 0x530a6b
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x5303b9
mov ebx, dword [esp + 0xa0]
lea ebp, [ebx + eax*4 - 4]
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0xac]
lea edi, [esi + edx*4 - 4]
cmp edi, ebp
jne 0x5303ce
xor eax, eax
xor ebx, ebx
jmp 0x5303ce
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0xac]
mov ebx, dword [esp + 0xa0]
cmp dword [0x69710c], ecx
jg 0x5304c8
mov ebp, dword [0x697104]
cmp ecx, ebp
jl 0x5303f4
nop
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x60], ecx
mov ecx, edi
jmp 0x530685
mov ebp, ecx
shl ecx, 1
cmp eax, ecx
jl 0x530407
jae 0x530483
jmp 0x53066c
cmp ecx, 1
jne 0x530448
lea eax, [0x5b0460]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0043f090
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov eax, 1
mov ecx, 1
jmp 0x530483
mov dword [esp + 0x74], ecx
lea eax, [0x5b0460]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
call fcn.0043f090
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x84], ebx
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov esi, dword [esp + 0xac]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
call fcn.0052fbe0
nop
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x84]
mov edx, eax
jmp 0x530625
mov ebp, ecx
shl ecx, 1
cmp eax, ecx
jl 0x5304db
jae 0x530557
jmp 0x53061c
cmp ecx, 1
jne 0x53051c
lea eax, [0x5b0460]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0043f090
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov eax, 1
mov ecx, 1
jmp 0x530557
mov dword [esp + 0x78], ecx
lea eax, [0x5b0460]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 8], eax
call fcn.0043f090
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x88], ebx
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov esi, dword [esp + 0xac]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
call fcn.0052e350
nop
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x88]
mov edx, eax
jmp 0x5305d5
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc0], eax
add esp, 0x9c
ret
mov eax, ebx
test eax, eax
jle 0x5305e8
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x530613
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x5305d3
mov edx, dword [esp + 0x40]
cmp eax, edx
ja 0x53060c
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], edx
add esp, 0x9c
ret
mov ecx, eax
call fcn.004520e0
mov eax, ebx
mov ecx, edx
call fcn.004520a0
mov edx, eax
call fcn.004520e0
mov eax, ebx
test eax, eax
jle 0x530638
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x530663
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x530623
mov edx, dword [esp + 0x3c]
cmp eax, edx
ja 0x53065c
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], edx
add esp, 0x9c
ret
mov ecx, eax
call fcn.004520e0
mov eax, ebx
mov ecx, edx
call fcn.004520a0
mov edx, eax
call fcn.004520e0
sar ecx, 1
mov esi, dword [esp + 0x60]
inc esi
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0xac]
cmp ecx, ebp
jg 0x530673
mov dword [esp + 0x90], ebx
mov dword [esp + 0x70], ecx
mov ebp, dword [esp + 0x60]
cmp ebp, 0x20
sbb esi, esi
mov ecx, ebp
mov ebx, dword [esp + 0x70]
shl ebx, cl
and esi, ebx
cmp edx, esi
jb 0x530a62
lea ebx, [esi + esi*2]
shl ebx, 1
mov ebp, edi
shl edi, 1
cmp edi, ebx
jl 0x5306be
mov ebx, edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x58], edi
cmp ebx, eax
jg 0x5306d9
ja 0x530a59
mov ecx, dword [esp + 0x90]
jmp 0x530753
cmp ebx, 1
jne 0x530719
lea eax, [0x5b0460]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0043f090
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0x48]
mov eax, 1
mov ecx, ebx
mov ebx, 1
jmp 0x530753
mov dword [esp + 0x44], ebx
lea eax, [0x5b0460]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 8], eax
call fcn.0043f090
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
mov ecx, ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x64], eax
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov ebx, dword [esp + 0xac]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
call fcn.0052fed0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
cmp edx, ecx
jb 0x530a54
mov eax, dword [esp + 0x48]
mov ebx, eax
shl eax, 1
cmp eax, ecx
ja 0x530a4f
mov dword [esp + 0x7c], eax
mov ebp, ecx
sub ecx, eax
mov esi, edx
sub edx, eax
neg edx
mov edi, ebx
shl ebx, 3
sar edx, 0x1f
and ebx, edx
mov edx, esi
mov esi, dword [esp + 0x80]
add ebx, esi
test ecx, ecx
je 0x5307ee
mov dword [esp], ebx
shl ecx, 2
mov dword [esp + 4], ecx
call fcn.00452750
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x64]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0xb0]
cmp ebx, edi
jle 0x5309f3
mov dword [esp], eax
call fcn.00530ac0
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x6c], ebx
nop
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x48]
mov edi, esi
jmp 0x53082b
mov esi, ebx
mov ebx, dword [esp + 0x6c]
test esi, esi
jle 0x53084e
lea ebx, [esi - 1]
cmp edi, ebx
jbe 0x530a46
mov dword [esp + 0x5c], esi
mov esi, dword [ebp + esi*4 - 4]
test esi, esi
je 0x530825
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb4]
cmp eax, esi
jb 0x530a3d
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x54], eax
mov ecx, eax
neg eax
mov edx, edi
shl edi, 2
sar eax, 0x1f
and edi, eax
lea eax, [ebp + edi]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0xb0]
sub ebx, edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
call fcn.0052f220
mov eax, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov ebp, dword [esp + 0x58]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x64]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
call fcn.0052f110
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
call fcn.0052f110
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
call fcn.005302f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov ebp, dword [esp + 0x58]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x64]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
call fcn.0052f110
lea eax, [0x6b0c30]
mov dword [esp], eax
lea eax, [0x5cbda0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
call fcn.00458e20
mov edx, dword [esp + 0x64]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x80]
nop
mov eax, ebp
jmp 0x5309fa
mov ebp, ebx
test ebp, ebp
jle 0x530a0d
lea ebx, [ebp - 1]
cmp eax, ebx
jbe 0x530a34
mov edi, dword [esi + ebp*4 - 4]
test edi, edi
je 0x5309f8
cmp ebp, edx
ja 0x530a2d
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc0], edx
add esp, 0x9c
ret
mov ecx, ebp
call fcn.004520e0
mov ecx, eax
mov eax, ebx
call fcn.004520a0
mov ecx, esi
mov edx, eax
call fcn.004520e0
mov eax, ebx
mov ecx, edi
call fcn.004520a0
call fcn.00452100
call fcn.004520e0
mov ecx, ebx
mov edx, eax
call fcn.004520e0
mov ecx, esi
call fcn.004520e0
mov eax, ebp
test eax, eax
jle 0x530a7f
lea ebp, [eax - 1]
cmp ebp, 2
jae 0x530aa8
mov esi, dword [ecx + eax*4 - 4]
test esi, esi
je 0x530a69
cmp eax, ebx
ja 0x530a9f
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ebx
add esp, 0x9c
ret
mov ecx, eax
mov edx, ebx
call fcn.004520e0
mov eax, ebp
mov ecx, 2
call fcn.004520a0
nop
call fcn.00450c10
jmp fcn.005302f0