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

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, ecx
push ebp
push 0x40000
mov dword [esp + 0x34], ebx
lea ecx, [ebx + 0x48]
call fcn.0040ff7f
test al, al
je 0x527e0b
lea ebp, [ebx + 0x18]
push 0x4000
mov ecx, ebp
call fcn.0041366f
test al, al
je 0x527e0b
push esi
mov esi, dword [esp + 0x68]
test esi, esi
jne 0x52789e
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x4c
ret 0x14
mov eax, dword [esp + 0x60]
mov ecx, ebp
push edi
push 0
mov dword [ebx + 0x2c], eax
call fcn.0052eff0
mov eax, dword [esp + 0x60]
lea edi, [ebx + 0x40]
lea ecx, [edi + 8]
mov dword [ebx + 0x54], eax
mov dword [esp + 0x20], edi
call fcn.0040ffcb
mov dword [edi], 0x20
mov dword [edi + 4], 0
mov dword [edi + 0x30], 0
mov cl, byte [ebx + 0x14]
movzx eax, cl
and eax, 2
mov byte [esp + 0x64], cl
or eax, 0xc
shr eax, 1
test cl, 4
mov dword [esp + 0x3c], eax
mov al, cl
mov ecx, 0
setne cl
add ecx, 2
mov dword [esp + 0x48], ecx
test al, 4
je 0x52791f
push 0x100
lea eax, [ebx + 0x78]
mov ecx, ebx
push eax
call fcn.00527630
test al, al
je 0x527dfc
lea eax, [ebx + 0x200]
mov ecx, ebx
push 0x40
push eax
mov dword [esp + 0x4c], eax
call fcn.00527630
test al, al
je 0x527dfc
lea eax, [ebx + 0x388]
mov ecx, ebx
push 0x40
push eax
mov dword [esp + 0x48], eax
call fcn.00527630
test al, al
je 0x527dfc
mov ecx, dword [esi + 4]
xorps xmm0, xmm0
mov eax, dword [esi]
movlpd qword [esp + 0x2c], xmm0
mov byte [esp + 0x6c], 0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jb 0x527d9b
ja 0x52798a
test eax, eax
je 0x527d9b
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
movlpd qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x14]
movlpd qword [esp + 0x18], xmm0
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], edx
sub eax, dword [esp + 0x2c]
sbb ecx, edx
jne 0x5279c5
cmp eax, 0x40000
jb 0x527a1a
cmp dword [esp + 0x70], 0
je 0x527a1a
mov edx, dword [edi + 8]
xor ecx, ecx
sub edx, dword [edi + 0x10]
mov eax, 0x20
sub eax, dword [edi]
shr eax, 3
sub edx, eax
sbb ecx, ecx
add edx, dword [edi + 0x28]
adc ecx, 0
add edx, dword [edi + 0x18]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x4c]
adc ecx, dword [edi + 0x1c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x70]
push edx
lea edx, [esp + 0x58]
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], esi
test eax, eax
jne 0x527df2
mov edx, dword [edi]
cmp edx, 8
jb 0x527a6a
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0xc]
jb 0x527a35
lea ecx, [edi + 8]
call fcn.00410050
mov cl, al
jmp 0x527a3b
mov cl, byte [eax]
inc eax
mov dword [edi + 8], eax
mov esi, dword [edi]
movzx edx, cl
mov ecx, 0x20
sub ecx, esi
mov eax, edx
shl eax, cl
or dword [edi + 0x30], eax
movzx ecx, byte [edx + 0x5b3640]
lea edx, [esi - 8]
mov eax, dword [edi + 4]
shl eax, 8
or ecx, eax
mov dword [edi], edx
mov dword [edi + 4], ecx
cmp edx, 8
jae 0x527a21
mov eax, dword [edi + 0x30]
inc edx
mov ebx, eax
mov dword [edi], edx
shr ebx, 1
mov dword [edi + 0x30], ebx
test al, 1
je 0x527b22
test byte [esp + 0x64], 4
je 0x527a97
mov ecx, dword [esp + 0x38]
push edi
lea ecx, [ecx + 0x78]
call fcn.00527e20
mov ebx, eax
jmp 0x527af9
cmp edx, 8
jb 0x527aec
nop dword [eax]
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0xc]
jb 0x527ab4
lea ecx, [edi + 8]
call fcn.00410050
mov cl, al
jmp 0x527aba
mov cl, byte [eax]
inc eax
mov dword [edi + 8], eax
mov edx, dword [edi]
movzx eax, cl
mov ecx, 0x20
sub ecx, edx
mov ebx, eax
shl ebx, cl
add edx, 0xfffffff8
or ebx, dword [edi + 0x30]
mov dword [edi + 0x30], ebx
movzx ecx, byte [eax + 0x5b3640]
mov eax, dword [edi + 4]
shl eax, 8
or ecx, eax
mov dword [edi], edx
mov dword [edi + 4], ecx
cmp edx, 8
jae 0x527aa0
lea eax, [edx + 8]
mov dword [edi], eax
mov eax, ebx
shr eax, 8
mov dword [edi + 0x30], eax
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov byte [ecx + eax], bl
inc ecx
mov dword [ebp + 4], ecx
cmp ecx, dword [ebp + 8]
jne 0x527b12
mov ecx, ebp
call fcn.00413756
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
add ebx, 1
jmp 0x527d60
cmp edx, 8
jb 0x527b73
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0xc]
jb 0x527b3b
lea ecx, [edi + 8]
call fcn.00410050
mov cl, al
jmp 0x527b41
mov cl, byte [eax]
inc eax
mov dword [edi + 8], eax
mov edx, dword [edi]
movzx eax, cl
mov ecx, 0x20
sub ecx, edx
mov ebx, eax
shl ebx, cl
add edx, 0xfffffff8
or ebx, dword [edi + 0x30]
mov dword [edi + 0x30], ebx
movzx ecx, byte [eax + 0x5b3640]
mov eax, dword [edi + 4]
shl eax, 8
or ecx, eax
mov dword [edi], edx
mov dword [edi + 4], ecx
cmp edx, 8
jae 0x527b27
mov esi, dword [esp + 0x3c]
mov ecx, esi
push edi
lea eax, [edx + esi]
mov dword [edi], eax
mov eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x30], eax
call fcn.00527e20
mov ecx, esi
mov edx, 1
shl edx, cl
dec edx
shl eax, cl
mov ecx, dword [esp + 0x44]
and edx, ebx
add eax, edx
push edi
mov dword [esp + 0x14], eax
call fcn.00527e20
mov edx, eax
cmp edx, 0x3f
jne 0x527c1f
mov eax, dword [edi]
cmp eax, 8
jb 0x527c09
nop dword [eax + eax]
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0xc]
jb 0x527bd4
lea ecx, [edi + 8]
call fcn.00410050
mov cl, al
jmp 0x527bda
mov cl, byte [eax]
inc eax
mov dword [edi + 8], eax
mov esi, dword [edi]
movzx edx, cl
mov ecx, 0x20
sub ecx, esi
mov eax, edx
shl eax, cl
or dword [edi + 0x30], eax
mov eax, dword [edi + 4]
movzx ecx, byte [edx + 0x5b3640]
shl eax, 8
or ecx, eax
lea eax, [esi - 8]
mov dword [edi + 4], ecx
mov dword [edi], eax
cmp eax, 8
jae 0x527bc0
mov ecx, dword [edi + 0x30]
add eax, 8
mov dword [edi], eax
mov eax, ecx
shr eax, 8
movzx edx, cl
mov dword [edi + 0x30], eax
add edx, 0x3f
add edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x4c]
sub ecx, ebx
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x50]
sbb eax, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x60], edx
cmp dword [esp + 0x18], eax
jb 0x527c5a
ja 0x527c4f
cmp edx, ecx
jbe 0x527c5a
mov byte [esp + 0x6c], 1
mov dword [esp + 0x60], ecx
jmp 0x527c5e
mov ecx, dword [esp + 0x60]
xor eax, eax
cmp eax, esi
jb 0x527cb7
ja 0x527c6e
mov eax, dword [esp + 0x10]
cmp eax, ebx
jb 0x527cbb
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov byte [ecx + eax], 0
inc ecx
mov dword [ebp + 4], ecx
cmp ecx, dword [ebp + 8]
jne 0x527c88
mov ecx, ebp
call fcn.00413756
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
add ebx, 1
mov ecx, dword [esp + 0x60]
mov edx, ebx
adc esi, 0
mov dword [esp + 0x4c], ebx
sub ecx, 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], esi
je 0x527d71
jmp 0x527c5e
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 4]
mov dword [esp + 0x18], ecx
mov ecx, edx
sub ecx, eax
dec ecx
cmp eax, edx
jb 0x527ce0
cmp byte [ebp + 0x24], 0
je 0x527d5c
mov eax, dword [ebp + 0x10]
cmp dword [esp + 0x10], eax
jae 0x527d5c
add ecx, eax
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x60]
sub eax, edx
cmp eax, ebx
jbe 0x527d15
mov eax, dword [ebp + 0x10]
sub eax, ecx
cmp eax, ebx
jbe 0x527d15
add ecx, dword [ebp]
add edx, dword [ebp]
add dword [ebp + 4], ebx
mov edi, dword [esp + 0x18]
mov al, byte [ecx]
lea edx, [edx + 1]
mov byte [edx - 1], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x527d03
jmp 0x527d54
mov edi, dword [esp + 0x18]
nop dword [eax]
mov edx, dword [ebp + 4]
xor esi, esi
cmp ecx, dword [ebp + 0x10]
cmovne esi, ecx
mov ecx, dword [ebp]
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc edx
lea ecx, [esi + 1]
mov dword [ebp + 4], edx
mov dword [esp + 0x18], ecx
cmp edx, dword [ebp + 8]
jne 0x527d4f
mov ecx, ebp
call fcn.00413756
mov ecx, dword [esp + 0x18]
sub edi, 1
jne 0x527d20
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
add ebx, dword [esp + 0x60]
adc esi, 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x18], esi
mov edx, ebx
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x28]
mov eax, ebx
cmp dword [esp + 0x18], edi
mov ecx, esi
mov edi, dword [esp + 0x20]
ja 0x527d94
jb 0x527d8b
cmp edx, dword [esp + 0x24]
jae 0x527d94
mov edx, dword [esp + 0x34]
jmp 0x5279b6
mov ebx, dword [esp + 0x38]
lea ebp, [ebx + 0x18]
mov ecx, ebp
call fcn.004136ac
mov esi, eax
test esi, esi
jne 0x527df0
cmp byte [ebx + 0x15], al
je 0x527dd7
cmp byte [esp + 0x6c], al
mov eax, 1
mov edi, dword [esp + 0x68]
cmovne esi, eax
test edi, edi
je 0x527dd7
lea ecx, [ebx + 0x40]
call fcn.0048bc84
cmp dword [edi], eax
jne 0x527dd2
cmp dword [edi + 4], edx
je 0x527dd7
mov esi, 1
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x4c], eax
jne 0x527deb
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x50], eax
je 0x527df0
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret 0x14
pop ebp
mov eax, 0x8007000e
pop ebx
add esp, 0x4c
ret 0x14