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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x524c39
sub esp, 0x84
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x52498f
lea eax, [0x8c84a0]
mov ecx, dword [esp + 0x8c]
cmp ecx, 0x20
jne 0x5249e3
mov dword [esp + 0x7c], eax
lea edx, [ecx - 8]
mov dword [esp + 0x3c], edx
lea ebx, [eax + 8]
lea ebp, [ecx - 0xc]
lea esi, [eax + 0xc]
lea edi, [ecx - 0x10]
lea edx, [eax + 0x10]
add ecx, 0xffffffec
add eax, 0x14
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
jmp 0x524abd
cmp ecx, 0x24
je 0x524a1d
cmp ecx, 0x26
jne 0x524c27
cmp byte [eax], 0x7b
jne 0x5249fc
cmp byte [eax + 0x25], 0x7d
je 0x524a0e
mov dword [esp + 0x90], 0
add esp, 0x84
ret
dec ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
add eax, ecx
mov ecx, edx
cmp byte [eax + 8], 0x2d
jne 0x524a35
cmp byte [eax + 0xd], 0x2d
jne 0x524a35
cmp byte [eax + 0x12], 0x2d
jne 0x524a35
cmp byte [eax + 0x17], 0x2d
je 0x524a47
mov dword [esp + 0x90], 0
add esp, 0x84
ret
mov dword [esp + 0x44], ecx
lea edx, [ecx - 9]
mov ebx, edx
neg ebx
sar ebx, 0x1f
and ebx, 9
lea ebp, [ecx - 0xe]
mov esi, ebp
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 0xe
lea edi, [ecx - 0x13]
mov dword [esp + 0x34], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 0x13
add ecx, 0xffffffe8
mov dword [esp + 0x30], ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x18
add ebx, eax
add esi, eax
add edi, eax
add ecx, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x30]
mov edx, edi
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], eax
lea ecx, [0x6dfc20]
mov dword [esp], ecx
call fcn.0040dea0
mov eax, dword [esp + 4]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], 8
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
call fcn.00524c50
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x27], al
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x80]
mov dword [edx], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.00524d40
movzx eax, word [esp + 0xc]
movzx ecx, byte [esp + 0xe]
mov byte [esp + 0x26], cl
mov edx, dword [esp + 0x80]
mov word [edx + 4], ax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], 4
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
call fcn.00524d40
movzx eax, word [esp + 0xc]
movzx ecx, byte [esp + 0xe]
mov byte [esp + 0x25], cl
mov edx, dword [esp + 0x80]
mov word [edx + 6], ax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], 4
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xc
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
call fcn.00524dc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movzx edx, byte [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x80]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
movzx eax, byte [esp + 0x27]
test al, al
je 0x524c15
movzx eax, byte [esp + 0x26]
test al, al
je 0x524c15
movzx eax, byte [esp + 0x25]
test al, al
je 0x524c15
test dl, dl
je 0x524c15
mov dword [esp + 0x90], ebx
add esp, 0x84
ret
mov dword [esp + 0x90], 0
add esp, 0x84
ret
mov dword [esp + 0x90], 0
add esp, 0x84
ret
call fcn.00475ee0
jmp fcn.00524960