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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x525584
sub esp, 0x84
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x10]
test edx, edx
jne 0x525515
xor eax, eax
xor edx, edx
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
xor esi, esi
mov edi, esi
movzx esi, byte [ecx + 4]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x524c23
jmp 0x524c2d
dec ebx
mov esi, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add ebp, ebx
mov ebx, esi
test ebx, ebx
jle 0x524c2d
cmp byte [ebp], 0x2e
je 0x524c14
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebx
test eax, eax
je 0x52547f
mov dword [esp + 0x34], eax
mov esi, edi
lea edi, [esp + 0x64]
xor eax, eax
call fcn.0045a358
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebx
mov eax, dword [esp + 0x34]
jmp 0x524c78
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
mov esi, ecx
mov edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], edx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x78], ecx
jge 0x524f72
xchg esi, eax
mov byte [esp + 0x22], al
xchg esi, eax
lea eax, [esp + 0x64]
mov dword [esp], eax
call fcn.00525f70
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
test ecx, ecx
jne 0x524dd2
mov edx, dword [esp + 0x34]
test edx, edx
je 0x524d58
mov eax, dword [esp + 0x54]
movzx ecx, byte [esp + 0x22]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x80]
lea ebp, [ebx + 1]
mov dword [esp + 0x80], ebp
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
test esi, esi
je 0x524d20
cmp ebp, edi
jl 0x524cf7
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x78], ebx
jmp 0x524c62
lea edx, [edi - 1]
cmp ebp, edx
jne 0x524d17
cmp ebp, edi
jae 0x525570
lea edx, [esi + ebx*8 + 8]
mov edx, dword [edx + 4]
test edx, edx
jne 0x524d17
mov edx, dword [esp + 0x34]
jmp 0x524cea
mov edx, dword [esp + 0x34]
jmp 0x524c62
mov ebx, dword [esp + 0x7c]
lea ebp, [ebx + 1]
mov dword [esp + 0x78], ebp
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
lea edx, [esi - 1]
cmp ebp, edx
jne 0x524d4f
cmp ebp, esi
jae 0x525567
lea edx, [edi + ebx + 1]
cmp byte [edx], 0x2e
jne 0x524d4f
mov dword [esp + 0x78], esi
mov edx, dword [esp + 0x34]
jmp 0x524c62
mov ebx, dword [esp + 0x88]
movzx ebp, byte [ebx + 3]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x524cbc
lea eax, [0x563f00]
mov dword [esp], eax
call fcn.0040b1d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x90]
mov dword [edi + 4], eax
mov ecx, dword [0x795b00]
test ecx, ecx
jne 0x524db9
mov edx, dword [esp + 0x8c]
mov dword [edi], edx
mov dword [edi + 0xc], 2
lea ebx, [0x5766b4]
mov dword [edi + 8], ebx
lea edx, [0x5c0c10]
mov eax, edi
jmp 0x524cc0
mov ecx, eax
mov eax, dword [esp + 0x8c]
call fcn.0045a0f0
mov eax, ecx
mov edx, dword [esp + 0x8c]
jmp 0x524d9c
cmp ecx, 4
jge 0x524f3e
xor edx, edx
test dl, dl
jne 0x524e18
mov edx, dword [esp + 0x34]
test edx, edx
je 0x524df7
mov eax, dword [esp + 0x54]
movzx ecx, byte [esp + 0x22]
jmp 0x524cc5
mov edx, dword [esp + 0x88]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00526390
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x524ded
cmp ecx, 4
jb 0x525579
add ecx, 0xfffffffc
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 4
add eax, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005268b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x524e6e
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x524e68
mov eax, dword [esp + 0x54]
movzx ecx, byte [esp + 0x22]
mov edx, ebp
jmp 0x524cc5
mov ebp, edx
mov eax, ebx
jmp 0x524e5c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], eax
movzx edx, byte [esp + 0x22]
test dl, dl
je 0x524f1c
mov edx, 1
mov byte [esp + 0x22], dl
lea ebx, [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00526050
mov eax, dword [esp + 0x34]
test eax, eax
je 0x524ee7
mov ecx, dword [esp + 0x54]
test eax, eax
je 0x524ebe
mov edx, eax
mov eax, ecx
movzx ecx, byte [esp + 0x22]
jmp 0x524cc5
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
call fcn.00526390
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x524eb0
mov ebx, dword [esp + 0x88]
movzx ebp, byte [ebx + 2]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x524ea8
mov edx, dword [ebx + 0xc]
mov dword [esp], ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov ebp, dword [edx]
call ebp
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x524eac
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0051dc20
mov eax, dword [esp + 8]
test eax, eax
setne dl
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
jmp 0x524e88
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], eax
mov dword [esp], eax
lea ecx, [0x577012]
mov dword [esp + 4], ecx
mov dword [esp + 8], 4
call fcn.004026c0
movzx edx, byte [esp + 0xc]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
jmp 0x524ddd
xchg esi, eax
test al, al
xchg esi, eax
je 0x525473
mov ecx, dword [esp + 0x88]
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x524f92
test eax, eax
je 0x525303
movzx ebx, byte [esp + 0x94]
test bl, bl
je 0x5251c7
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
jmp 0x524fcd
mov ecx, ebp
mov eax, edx
mov edx, ebx
movzx ebx, byte [esp + 0x94]
mov ebp, dword [esp + 0x68]
cmp dword [esp + 0x78], ebp
jge 0x5251c7
mov dword [esp + 0x60], edx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x64]
mov dword [esp], eax
call fcn.00525f70
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00526850
movzx eax, byte [esp + 8]
test al, al
je 0x525146
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x88]
movzx esi, byte [ebp + 3]
xchg esi, eax
test al, al
xchg esi, eax
je 0x525041
test edx, edx
je 0x5250d9
mov esi, dword [esp + 0x80]
lea eax, [esi + 1]
mov dword [esp + 0x80], eax
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
test edi, edi
je 0x52509e
cmp eax, ecx
jl 0x52506f
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], eax
jmp 0x524fbf
lea ebp, [ecx - 1]
cmp eax, ebp
jne 0x525092
cmp eax, ecx
jae 0x525558
lea eax, [edi + esi*8 + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x525092
mov ebp, dword [esp + 0x88]
jmp 0x525062
mov ebp, dword [esp + 0x88]
jmp 0x524fbf
mov esi, dword [esp + 0x7c]
lea eax, [esi + 1]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
lea ebp, [ecx - 1]
cmp eax, ebp
jne 0x5250cd
cmp ecx, eax
jbe 0x525553
lea eax, [esi + edi + 1]
cmp byte [eax], 0x2e
jne 0x5250cd
mov dword [esp + 0x78], ecx
mov ebp, dword [esp + 0x88]
jmp 0x524fbf
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], ecx
test eax, eax
je 0x5250ee
cmp eax, 0x3f
jle 0x525041
lea eax, [0x563f00]
mov dword [esp], eax
call fcn.0040b1d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0x795b00]
test eax, eax
jne 0x52513b
mov edx, dword [esp + 0x50]
mov dword [edi], edx
mov dword [edi + 0xc], 2
lea esi, [0x5766b4]
mov dword [edi + 8], esi
mov ebp, dword [esp + 0x88]
lea edx, [0x5c0c10]
mov ebx, edi
jmp 0x525041
mov eax, dword [esp + 0x50]
call fcn.0045a0f0
jmp 0x525117
lea eax, [0x577012]
mov dword [esp], eax
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
call fcn.00527040
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x5251c1
mov edx, dword [esp + 0x60]
mov dword [esp + 0x54], edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x58], eax
lea ebx, [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00526050
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x54]
jmp 0x525028
mov ebp, edx
mov edx, ebx
jmp 0x525188
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
test ebp, ebp
jne 0x5252b3
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
test bl, bl
je 0x5251f3
movzx ecx, byte [ecx + 3]
test cl, cl
je 0x5251f3
test eax, eax
je 0x525216
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
add esp, 0x84
ret
test esi, esi
jle 0x5252ac
lea ecx, [esi + ebp - 1]
cmp byte [ecx], 0x2e
jne 0x5252ac
lea ecx, [esi - 1]
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], ebp
cmp esi, 1
jge 0x52529a
lea eax, [0x563f00]
mov dword [esp], eax
call fcn.0040b1d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov ecx, dword [0x795b00]
test ecx, ecx
jne 0x525287
mov ecx, dword [esp + 0x44]
mov dword [edi], ecx
mov dword [edi + 0xc], 2
lea edx, [0x5766b4]
mov dword [edi + 8], edx
lea edx, [0x5c0c10]
mov ebp, ecx
mov esi, eax
mov eax, edx
mov edx, edi
jmp 0x5251f3
mov ecx, eax
mov eax, dword [esp + 0x44]
call fcn.0045a0f0
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x525264
cmp ecx, 0xfd
jg 0x52523b
mov ecx, ebp
mov edi, edx
mov edx, eax
mov eax, esi
jmp 0x52527a
mov ecx, esi
jmp 0x52522e
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], edx
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
lea eax, [0x57665e]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004bbcd0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
movzx eax, byte [esp + 0x94]
test al, al
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x5c]
jmp 0x5251e5
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
jmp 0x52533d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x68]
cmp dword [esp + 0x78], esi
jge 0x52546f
lea eax, [esp + 0x64]
mov dword [esp], eax
call fcn.00525f70
mov eax, dword [esp + 0x88]
mov edx, dword [eax + 0x14]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 8]
test al, al
je 0x52540e
mov edx, dword [esp + 0x80]
lea eax, [edx + 1]
mov dword [esp + 0x80], eax
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
test ebx, ebx
je 0x5253d2
cmp ecx, eax
jg 0x5253af
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], eax
jmp 0x525320
lea ebp, [ecx - 1]
cmp eax, ebp
jne 0x525320
cmp ecx, eax
jbe 0x525562
lea eax, [ebx + edx*8 + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x5253a2
jmp 0x525320
mov edx, dword [esp + 0x7c]
lea eax, [edx + 1]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
lea ebp, [ecx - 1]
cmp eax, ebp
jne 0x525320
cmp eax, ecx
jae 0x52555d
lea eax, [ebx + edx + 1]
cmp byte [eax], 0x2e
jne 0x525320
mov dword [esp + 0x78], ecx
jmp 0x525320
lea eax, [0x563f00]
mov dword [esp], eax
call fcn.0040b1d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x90]
mov dword [edi + 4], eax
mov eax, dword [0x795b00]
test eax, eax
jne 0x525461
mov eax, dword [esp + 0x8c]
mov dword [edi], eax
mov dword [edi + 0xc], 1
lea eax, [0x57666b]
mov dword [edi + 8], eax
lea eax, [0x5c0c10]
mov ecx, dword [esp + 0x88]
mov edx, edi
jmp 0x524f92
mov eax, dword [esp + 0x8c]
call fcn.0045a0f0
jmp 0x52543d
mov edi, edx
jmp 0x525453
mov ecx, dword [esp + 0x88]
jmp 0x524f92
movzx esi, byte [ecx + 3]
xchg esi, eax
test al, al
xchg esi, eax
je 0x524c43
test ebx, ebx
jne 0x524c43
xchg edi, eax
mov byte [esp + 0x23], al
xchg edi, eax
lea eax, [0x563f00]
mov dword [esp], eax
call fcn.0040b1d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x90]
mov dword [edi + 4], eax
mov ecx, dword [0x795b00]
test ecx, ecx
jne 0x5254fc
mov ecx, dword [esp + 0x8c]
mov dword [edi], ecx
mov dword [edi + 0xc], 2
lea esi, [0x5766b4]
mov dword [edi + 8], esi
mov ecx, dword [esp + 0x88]
mov ebx, eax
mov ebp, dword [esp + 0x8c]
lea eax, [0x5c0c10]
mov edx, edi
movzx edi, byte [esp + 0x23]
jmp 0x524c43
mov ecx, eax
mov eax, dword [esp + 0x8c]
call fcn.0045a0f0
mov eax, ecx
mov ecx, dword [esp + 0x8c]
jmp 0x5254ca
mov dword [esp], ecx
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
mov eax, dword [edx]
call eax
mov ebp, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
movzx esi, byte [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
jmp 0x524c06
call fcn.0045a170
call fcn.0045a170
call fcn.0045a170
call fcn.0045a170
mov eax, ebp
mov ecx, esi
call fcn.0045a170
mov eax, ebp
mov ecx, edi
call fcn.0045a170
mov eax, 4
call fcn.0045a1d0
nop
call fcn.00458ba0
jmp fcn.00524bc0