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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
movzx ebx, byte [edx + 0xc]
mov dword [esp + 0x34], ecx
cmp ebx, 7
ja 0x528b77
mov eax, 0x86
bt eax, ebx
jae 0x528b77
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
mov word [esp + 0x68], 0
lea edx, [esp + 0x68]
and ecx, 0xfffffffe
mov dword [esp + 0x6c], eax
add ecx, eax
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x48]
call fcn.00528f20
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
xor ecx, ecx
test eax, eax
je 0x52886e
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [edx + eax - 1], 0
jne 0x528b91
dec eax
jne 0x528860
cmp bl, 7
mov dword [esp + 0x50], ecx
jne 0x528ba0
mov eax, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x68]
mov dword [esp + 0x3c], edx
push 1
push 0x59e2ec
mov dword [esp + 0x64], eax
push eax
call fcn.0045a980
add esp, 0xc
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + 0x9c]
cmp dword [esp + 0x68], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
je 0x528bba
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x84]
mov edi, 0
mov dword [esp], 0
lea edx, [eax - 1]
mov dword [esp + 0xc], eax
mov eax, edx
lea eax, [edx + ecx]
mov dword [esp + 0x44], edx
cmp eax, esi
jae 0x528e4c
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0xc]
mov dword [esp], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x80]
sub edi, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 8], ecx
mov ecx, 1
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], edx
jmp 0x528993
add edi, dword [esp + 0xc]
xor eax, eax
cmp dword [esp + 0x20], 0xffffffff
je 0x528985
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
add eax, edi
cmp eax, esi
jae 0x528e43
movzx ecx, byte [ebx + eax]
xor eax, eax
mov edx, 1
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x24]
and edx, dword [esp + 0x64]
or edx, eax
je 0x528970
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp + 4], ecx
lea esi, [ebx + ecx]
cmp eax, edx
mov edi, edx
cmova edi, eax
cmp dword [esp + 0x20], 0xffffffff
cmove edi, eax
mov eax, dword [esp + 0xc]
mov ecx, edi
cmp edi, eax
cmova eax, edi
nop dword [eax + eax]
cmp eax, ecx
je 0x528a40
mov ebx, ecx
mov ecx, dword [esp + 4]
add ecx, ebx
cmp ecx, dword [esp + 0x10]
jae 0x528ece
mov edx, dword [esp + 8]
lea ecx, [ebx + 1]
movzx edx, byte [edx + ebx]
cmp dl, byte [esi + ebx]
je 0x5289f0
mov edi, dword [esp + 4]
xor eax, eax
mov esi, dword [esp + 0x10]
sub edi, dword [esp + 0x38]
cmp dword [esp + 0x20], 0xffffffff
lea edi, [edi + ebx + 1]
mov ebx, dword [esp + 0x28]
jne 0x52897d
jmp 0x528985
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov eax, 0
cmove ebx, eax
nop dword [eax]
mov eax, dword [esp + 4]
cmp ebx, ecx
jae 0x528ab0
dec ecx
cmp ecx, dword [esp + 0xc]
jae 0x528ee7
add eax, ecx
cmp eax, esi
jae 0x528ef5
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x28]
movzx edx, byte [edx + ecx]
cmp dl, byte [edi + eax]
je 0x528a60
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x54]
add edi, dword [esp + 0x58]
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x28]
jne 0x52897d
jmp 0x528985
cmp dword [esp + 0x20], 0xffffffff
mov edx, dword [esp + 0x40]
mov ecx, 0
mov ebx, eax
cmovne edx, ecx
mov ecx, dword [esp + 0x14]
sub ebx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov edx, dword [esp]
mov eax, ecx
sub eax, edx
cmp eax, ebx
jb 0x528b40
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x30]
lea eax, [ecx + edx]
mov dword [esp], edx
add edi, dword [esp + 0x3c]
push ebx
push edi
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0xc]
mov ecx, edi
add esp, 0xc
mov edx, dword [esp + 0x2c]
add eax, ebx
mov dword [esp + 0x1c], eax
cmp edx, eax
je 0x528b5f
mov edi, dword [esp + 4]
mov byte [ecx + eax], 0xa
inc eax
mov ebx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
add edi, dword [esp + 0xc]
add eax, edi
mov dword [esp + 0x30], edi
cmp eax, esi
jb 0x52895d
jmp 0x528e4c
lea ecx, [esp + 0x14]
push ebx
call fcn.0052fcb0
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x528ae2
lea ecx, [esp + 0x14]
push 1
call fcn.0052fcb0
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
jmp 0x528b11
mov eax, dword [esp + 0x34]
mov byte [eax + 4], 0
mov dword [eax + 8], 0xde
mov dword [eax], 0x80000000
jmp 0x528ea9
mov ecx, eax
cmp bl, 7
mov dword [esp + 0x50], ecx
je 0x52887b
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x48]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x528ea9
test eax, 0xff0000
mov edi, 0
mov dword [esp], 0
jne 0x528e4c
mov edx, dword [esp + 0x6c]
xor ecx, ecx
xor edi, edi
mov dword [esp + 0xc], 1
jmp 0x528c0b
mov edx, dword [esp + 8]
mov byte [esi + ecx], 0xa
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x1c], ecx
mov edi, edx
test edx, edx
mov eax, esi
je 0x528c36
mov eax, esi
sub eax, edx
jbe 0x528c30
cmp byte [ebx + edx], 0xc0
jge 0x528c36
jmp 0x528f03
jne 0x528f03
test eax, eax
je 0x528d30
mov dword [esp + 8], edx
movzx edx, byte [ebx + edx]
mov eax, ebx
movzx ebx, dl
test dl, dl
jns 0x528d4d
mov esi, dword [esp + 8]
and ebx, 0x1f
movzx esi, byte [eax + esi + 1]
and esi, 0x3f
cmp dl, 0xe0
jb 0x528d44
mov dword [esp + 4], edi
mov edi, ecx
mov ecx, dword [esp + 8]
shl esi, 6
movzx ecx, byte [eax + ecx + 2]
and ecx, 0x3f
or ecx, esi
cmp dl, 0xf0
jb 0x528dfc
mov esi, dword [esp + 8]
shl ecx, 6
and ebx, 7
shl ebx, 0x12
movzx edx, byte [eax + esi + 3]
mov eax, esi
mov esi, dword [esp + 0x10]
and edx, 0x3f
or edx, ecx
mov ecx, edi
mov edi, dword [esp + 4]
or ebx, edx
mov edx, eax
cmp byte [esp + 0x24], 0
jne 0x528d5c
nop dword [eax]
cmp ebx, 0x110000
mov dword [esp], ecx
je 0x528e4c
mov ecx, 1
cmp ebx, 0x80
jb 0x528cf7
mov ecx, 2
cmp ebx, 0x800
jb 0x528cf7
cmp ebx, 0x10000
mov ecx, 4
sbb ecx, 0
add edx, ecx
mov ecx, dword [esp]
mov ebx, dword [esp + 0x28]
mov eax, esi
je 0x528dd4
mov eax, esi
sub eax, edx
jbe 0x528dce
cmp byte [ebx + edx], 0xc0
jge 0x528dd4
jmp 0x528f03
mov eax, dword [esp + 0x24]
test al, al
je 0x528e49
xor al, 1
mov dword [esp + 0x24], eax
jmp 0x528d6b
shl ebx, 6
or ebx, esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 8]
cmp byte [esp + 0x24], 0
je 0x528cc0
mov esi, edx
mov edx, dword [esp + 0x24]
xor dl, 1
mov dword [esp + 0x24], edx
mov edx, esi
mov ebx, edx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x14]
sub ebx, edi
mov eax, edx
sub eax, ecx
cmp eax, ebx
jb 0x528e1f
mov esi, dword [esp + 0xc]
mov dword [esp + 4], edx
add edi, dword [esp + 0x3c]
lea eax, [esi + ecx]
push ebx
push edi
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, edi
add esp, 0xc
mov edx, dword [esp + 4]
add ecx, ebx
mov dword [esp + 0x1c], ecx
cmp edx, ecx
jne 0x528bf0
lea ecx, [esp + 0x14]
push 1
call fcn.0052fcb0
add esp, 4
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x528bf0
jne 0x528f03
test eax, eax
je 0x528def
movzx eax, byte [ebx + edx]
mov esi, edx
mov dl, 1
test al, al
jns 0x528d62
cmp al, 0xe0
jmp 0x528d62
mov dword [esp + 0x24], 0
jmp 0x528d6b
shl ebx, 0xc
mov esi, dword [esp + 0x10]
or ebx, ecx
mov ecx, edi
mov edi, dword [esp + 4]
mov edx, dword [esp + 8]
cmp byte [esp + 0x24], 0
jne 0x528d5c
jmp 0x528cc0
mov edx, ecx
lea ecx, [esp + 0x14]
push ebx
call fcn.0052fcb0
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 4], eax
jmp 0x528d8b
mov edi, dword [esp + 0x30]
jmp 0x528e4c
mov dword [esp], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
sub eax, dword [esp]
sub ecx, edi
cmp eax, ecx
jb 0x528eb1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
add edx, edi
mov edi, dword [esp]
add eax, edi
push ecx
push edx
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], 0
mov dword [esp + 0x1c], edi
movsd xmm0, qword [esp + 0x14]
mov dword [eax + 8], edi
movsd qword [eax], xmm0
je 0x528ea9
push dword [esp + 0x4c]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp]
mov esi, ecx
lea ecx, [esp + 0x14]
push esi
call fcn.0052fcb0
mov ecx, esi
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
jmp 0x528e5d
add edi, dword [esp + 4]
mov edx, dword [esp + 0x10]
cmp edx, edi
cmova edi, edx
mov ecx, edi
push 0x59e2cc
call fcn.00532ca0
mov edx, dword [esp + 0xc]
push 0x59e2ac
call fcn.00532ca0
mov ecx, eax
mov edx, esi
push 0x59e2bc
call fcn.00532ca0
mov eax, edx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push 0x59e2dc
push edx
push eax
call fcn.00533230
int3