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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x663068
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x705e7c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x1f]
push ecx
lea ecx, [esp + 0x64]
call fcn.00537c70
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 4]
xor ebp, ebp
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], ebp
call fcn.0056a140
mov eax, dword [esp + 0x74]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], ebp
mov dword [eax], eax
mov eax, dword [esp + 0x74]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
xor ebx, ebx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x28], ebx
je 0x53939d
mov dword [esp + 0x20], ebp
jmp 0x5392b2
xor ebp, ebp
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x5392d2
call fcn.006121a6
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x10]
add edi, dword [esp + 0x20]
sar ecx, 2
mov dword [esp + 0x30], edi
cmp ebx, ecx
jb 0x5392ef
call fcn.006121a6
mov edx, dword [esi + 0x28]
mov eax, dword [edx + ebx*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], ebp
jmp 0x539304
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov al, byte [edi + ecx + 0x10]
test al, al
je 0x539370
mov ebx, dword [esi + 0x158]
mov edi, dword [esi + 0x140]
movzx edx, al
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edx
lea ecx, [esi + 0x140]
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00459e50
mov ebp, eax
test edi, edi
je 0x539343
cmp edi, dword [ebp]
je 0x539348
call fcn.006121a6
cmp ebx, dword [ebp + 4]
jne 0x53935d
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 8
mov dword [esp + 0x1c], eax
jl 0x539300
jmp 0x539370
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x64]
call fcn.00514f60
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov ebx, dword [esp + 0x28]
add dword [esp + 0x20], 0x30
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x28], ebx
cmp ebx, eax
jb 0x5392b0
mov ebp, dword [esi + 0x44]
cmp dword [esi + 0x40], ebp
lea edi, [esi + 0x34]
jbe 0x5393ad
call fcn.006121a6
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x40], ecx
cmp ebx, dword [edi + 0x10]
jbe 0x5393c0
call fcn.006121a6
mov edx, dword [esp + 0x40]
mov eax, dword [edi]
push ebp
push edx
push ebx
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.005638f0
mov edi, dword [esi + 0x5c]
cmp dword [esi + 0x58], edi
lea ebx, [esi + 0x4c]
jbe 0x5393e6
call fcn.006121a6
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx]
mov dword [esp + 0x40], ecx
cmp ebp, dword [ebx + 0x10]
jbe 0x5393f9
call fcn.006121a6
mov edx, dword [esp + 0x40]
mov eax, dword [ebx]
push edi
push edx
push ebp
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call fcn.005638f0
mov edi, dword [esi + 0x74]
cmp dword [esi + 0x70], edi
lea ebx, [esi + 0x64]
jbe 0x53941f
call fcn.006121a6
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx]
mov dword [esp + 0x40], ecx
cmp ebp, dword [ebx + 0x10]
jbe 0x539432
call fcn.006121a6
mov edx, dword [esp + 0x40]
mov eax, dword [ebx]
push edi
push edx
push ebp
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call fcn.005638f0
mov edi, dword [esi + 0x28]
cmp edi, dword [esi + 0x2c]
jbe 0x539455
call fcn.006121a6
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x38], ebx
mov ebp, edi
mov edi, dword [esi + 0x2c]
mov dword [esp + 0x3c], ebp
cmp dword [esi + 0x28], edi
jbe 0x53946f
call fcn.006121a6
mov eax, dword [esi + 0x1c]
test ebx, ebx
je 0x53947a
cmp ebx, eax
je 0x53947f
call fcn.006121a6
cmp ebp, edi
je 0x5395d6
test ebx, ebx
jne 0x539501
call fcn.006121a6
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x53949c
call fcn.006121a6
cmp dword [esi + 0x13c], 0
mov edi, dword [ebp]
mov dword [esp + 0x40], edi
je 0x5394e8
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x5c]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00537b50
mov ebp, eax
test ebx, ebx
je 0x5394d6
cmp ebx, dword [ebp]
je 0x5394db
call fcn.006121a6
mov ecx, dword [esp + 0x34]
cmp ecx, dword [ebp + 4]
je 0x5395ad
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x539547
mov ecx, dword [esi + 0x40]
lea ebx, [esi + 0x34]
lea ebp, [edi + 0xc]
test ecx, ecx
jne 0x539505
xor eax, eax
jmp 0x53950d
mov eax, dword [ebx]
jmp 0x539492
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [ebx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x53952b
mov eax, dword [ebp]
mov dword [edi], eax
add edi, 4
mov dword [ebx + 0x10], edi
jmp 0x5395ad
cmp ecx, edi
jbe 0x539534
call fcn.006121a6
mov eax, dword [ebx]
push ebp
push edi
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.005787d0
jmp 0x5395ad
cmp eax, 2
jne 0x53959c
mov ecx, dword [esi + 0x58]
lea ebx, [esi + 0x4c]
lea ebp, [edi + 0x14]
test ecx, ecx
jne 0x53955d
xor eax, eax
jmp 0x539565
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [ebx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x539580
mov eax, dword [ebp]
mov dword [edi], eax
add edi, 4
mov dword [ebx + 0x10], edi
jmp 0x5395ad
cmp ecx, edi
jbe 0x539589
call fcn.006121a6
mov eax, dword [ebx]
push ebp
push edi
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.005787d0
jmp 0x5395ad
cmp eax, 5
jne 0x5395ad
add edi, 0x24
push edi
lea ecx, [esi + 0x64]
call fcn.005339a0
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x5395d2
call fcn.006121a6
xor eax, eax
mov ebp, dword [esp + 0x3c]
cmp ebp, dword [eax + 0x10]
jb 0x5395ca
call fcn.006121a6
add ebp, 4
jmp 0x53945e
mov eax, dword [ebx]
jmp 0x5395bc
lea ecx, [esp + 0x5c]
mov dword [esp + 0x88], 0xffffffff
call fcn.00504770
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret