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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x525440
sub esp, 0x64
mov eax, dword [0x720108]
test eax, eax
je 0x5253fc
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jle 0x5253fc
mov edx, 1
jmp 0x524f3f
shl eax, 1
inc edx
mov ecx, ebx
mov ebx, ecx
sar ecx, 1
cmp eax, ecx
jge 0x524f4c
cmp edx, 0x40
jl 0x524f3a
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x6c]
cmp eax, 0xa
jne 0x5253d7
lea eax, [0x753d20]
mov dword [esp], eax
call fcn.00466cc0
mov ecx, dword [esp + 0x40]
cmp ecx, 0x40
ja 0x525435
lea eax, [0x753d28]
mov edx, 0x40
lea ebx, [ecx - 1]
cmp ebx, ecx
jae 0x52542e
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], eax
lea ebx, [ecx + ecx*4]
mov ebx, dword [eax + ebx*4 - 4]
test ebx, ebx
jne 0x5253ce
xor ebx, ebx
jmp 0x524faa
inc ebx
cmp ebx, ecx
jge 0x525396
cmp ebx, ecx
jae 0x525427
lea ebp, [ebx + ebx*4]
mov esi, dword [eax + ebp*4 + 0x10]
test esi, esi
jne 0x524fa9
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
test ebx, ebx
jne 0x525318
mov eax, dword [0x720108]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00524e00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x5c]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x52530e
mov dword [edi], eax
mov eax, dword [0x720108]
mov ecx, dword [esp + 0x70]
imul eax, ecx
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x48]
mov edx, dword [edi + eax*4 + 4]
mov ebx, dword [edi + eax*4]
lea ebp, [edi + eax*4]
mov dword [esp + 0x60], ebp
test edx, edx
jg 0x52525c
mov esi, edx
xor edx, edx
mov dword [esp + 0x58], edx
xor edx, edx
mov dword [esp + 0x3c], edx
mov edx, esi
cmp esi, edx
jge 0x525255
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x58]
cmp ebx, ecx
je 0x525090
mov dword [esp], ecx
mov dword [esp + 4], ebx
shl esi, 2
mov dword [esp + 8], esi
call fcn.0045e900
jmp 0x525090
inc dword [ebx + ecx*4 + 0x10]
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
call fcn.005256b0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5251da
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
mov ebx, dword [edx + ecx*4 + 8]
mov ebp, dword [edx + ecx*4]
mov esi, dword [esp + 0x28]
cmp ebx, esi
jl 0x525160
mov eax, esi
cmp esi, eax
jle 0x52515a
mov edi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x58]
cmp ebp, ebx
je 0x52511a
mov dword [esp], ebp
mov dword [esp + 4], ebx
shl eax, 2
mov dword [esp + 8], eax
call fcn.0045e900
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x5c]
mov dword [ebx + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + ecx*4 + 8], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x525148
mov eax, dword [esp + 0x50]
mov dword [ebx + ecx*4], eax
jmp 0x52508c
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
call fcn.0045df70
jmp 0x52508c
mov edi, eax
mov eax, esi
jmp 0x5250f3
cmp esi, 1
jne 0x5251a2
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00444f30
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
mov esi, 1
mov ebx, 1
jmp 0x5250ed
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 8], ecx
call fcn.00444f30
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
mov esi, eax
mov ebx, dword [esp + 0x30]
jmp 0x5250ed
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [ebx + edx*4 + 4]
mov esi, dword [ebx + edx*4]
lea edi, [ebp - 1]
test edi, edi
jl 0x52524b
mov ebp, dword [esi + ebp*4 - 4]
nop
cmp ebp, 0x10000
jb 0x525247
shr ebp, 0x10
mov eax, 0x10
cmp ebp, 0x100
jb 0x525213
shr ebp, 8
add eax, 8
cmp ebp, 0x100
jae 0x52541b
shl edi, 5
lea esi, [0x7257e0]
movzx ebp, byte [esi + ebp]
add ebp, eax
add ebp, edi
mov dword [ebx + edx*4 + 0xc], ebp
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
jmp 0x524fa9
xor eax, eax
jmp 0x525205
lea esi, [0x7257e0]
xor ebp, ebp
jmp 0x525230
mov esi, edx
jmp 0x52506b
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], ebx
cmp edx, 1
jne 0x5252be
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00444f30
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x5c]
mov edx, 1
mov dword [esp + 0x58], eax
mov ecx, 1
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
jmp 0x525063
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [edx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 8], ecx
call fcn.00444f30
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x5c]
mov edx, esi
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
jmp 0x525063
call fcn.0045df70
jmp 0x525029
mov ecx, dword [eax + ebp*4 - 0x14]
mov edx, dword [eax + ebp*4 - 0x10]
mov ebx, dword [eax + ebp*4 - 0xc]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.0051e2f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x5c]
mov dword [ebp + ebx*4 + 4], ecx
mov dword [ebp + ebx*4 + 8], edx
lea edi, [ebp + ebx*4]
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x52538f
mov dword [ebp + ebx*4], eax
mov eax, dword [ebp + ebx*4 - 4]
shl eax, 1
mov dword [ebp + ebx*4 + 0x10], eax
mov ecx, dword [esp + 0x70]
mov edi, ebp
jmp 0x525039
call fcn.0045df70
jmp 0x52537a
mov ebx, dword [esp + 0x6c]
cmp ebx, 0xa
je 0x5253b2
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
add esp, 0x64
ret
lea eax, [0x753d20]
mov dword [esp], eax
call fcn.00467080
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
jmp 0x52539f
mov ebx, dword [esp + 0x6c]
cmp ebx, 0xa
jmp 0x52539d
lea eax, [0x5cfe20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00444f30
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov edx, ecx
jmp 0x524f83
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x64
ret
mov eax, ebp
mov ecx, 0x100
call fcn.0045e000
mov eax, ebx
call fcn.0045dff0
mov eax, ebx
call fcn.0045dff0
mov edx, 0x40
call fcn.0045e010
nop
call fcn.0045ca10
jmp fcn.00524f00