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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x68]
mov eax, dword [eax]
mov edx, dword [edx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
push ebp
mov dword [esp + 0x48], eax
mov ebp, 0xfffffffe
push esi
lea eax, [ebx + 6]
mov dword [esp + 0x50], edx
mov esi, ebp
mov dword [esp + 0x80], eax
cmp byte [edx], 0x7f
push edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], esi
jne 0x52752b
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x48], eax
xor eax, eax
mov word [esp + 0x4e], ax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], ecx
mov word [esp + 0x4c], cx
mov dword [edi + 0x20], eax
mov byte [edx + 1], 0
lea eax, [edx + 1]
mov dword [esp + 0x40], eax
add ebx, 3
lea eax, [edx + 2]
add ebx, edx
mov byte [eax], 0
lea edx, [esp + 0x84]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x38]
mov ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
neg eax
mov dword [esp + 0x3c], ecx
sbb eax, eax
and eax, edx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x70], 0
mov dword [esp + 0x14], ebx
je 0x527578
mov dword [edi + 0x38], ecx
cmp dword [esp + 0x6c], 0
je 0x52759b
mov byte [ebx], 0x76
inc ebx
mov dword [esp + 0x2c], ebx
mov word [ebx], 0
add ebx, 2
add dword [esp + 0x84], 3
mov dword [esp + 0x14], ebx
push eax
push edi
push dword [esp + 0x80]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.005233c0
add esp, 0x28
test eax, eax
je 0x527742
mov eax, dword [edi + 0x38]
cmp eax, dword [esp + 0x24]
jle 0x5275e9
mov dword [esp + 0x24], eax
cmp dword [esp + 0x8c], 0
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jne 0x5276a1
cmp byte [edx], 0x71
je 0x527612
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
jmp 0x527656
mov eax, dword [esp + 0x28]
test esi, esi
js 0x52762c
cmp esi, eax
je 0x527640
test ebp, ebp
jns 0x527624
mov ebp, esi
mov dword [esp + 0x20], 0xffffffff
test eax, eax
js 0x527640
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jns 0x527644
mov ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x527644
mov ecx, dword [esp + 0x1c]
mov eax, ecx
xor eax, ebp
test eax, 0xdfffffff
je 0x527654
or ebp, 0xffffffff
jmp 0x527656
or ebp, ecx
cmp dword [esp + 0x6c], 0
je 0x5276a1
mov eax, dword [esp + 0x5c]
push edi
shr eax, 0xb
push 0
and eax, 1
mov byte [ebx], 0
push eax
push edx
call fcn.00527f50
mov ecx, eax
add esp, 0x10
cmp ecx, 0xfffffffd
jne 0x527687
mov dword [edi + 0x5c], 1
jmp 0x52769d
test ecx, ecx
js 0x527723
mov edx, dword [esp + 0x2c]
mov eax, ecx
sar eax, 8
mov byte [edx], al
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
cmp byte [esi], 0x7c
jne 0x527756
cmp dword [esp + 0x8c], 0
je 0x5276e5
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x74]
add dword [esp + 0x84], 3
add ebx, 3
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
add ebx, eax
mov eax, dword [esp + 0x38]
inc esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x20]
jmp 0x52756a
mov ecx, dword [esp + 0x3c]
mov eax, ebx
sub eax, edx
mov byte [ebx], 0x71
sar eax, 8
mov edi, ebx
mov byte [ebx + 1], al
mov al, bl
sub al, dl
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x88]
mov byte [ebx + 2], al
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], ebx
add ebx, 3
inc esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x20]
jmp 0x52756a
cmp ecx, 0xfffffffe
jne 0x52772f
mov ecx, 0x24
jmp 0x52773c
sub ecx, 0xfffffffc
neg ecx
sbb ecx, ecx
and ecx, 0xffffffd3
add ecx, 0x46
mov eax, dword [esp + 0x68]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x48
ret
cmp dword [esp + 0x8c], 0
jne 0x527797
mov edi, dword [esp + 0x10]
mov edx, ebx
sub edx, edi
jmp 0x527770
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
mov byte [edi + 2], dl
mov eax, edx
mov edx, ecx
sar eax, 8
mov byte [edi + 1], al
sub edi, ecx
test ecx, ecx
jg 0x527770
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub eax, ecx
mov byte [ebx], 0x72
sar eax, 8
mov byte [ebx + 1], al
mov al, bl
sub al, cl
mov byte [ebx + 2], al
add ebx, 3
cmp dword [esp + 0x30], 0
jle 0x52782e
mov eax, dword [edi + 0x20]
cmp word [eax + 6], 0
je 0x52781d
mov eax, ebx
sub eax, ecx
push eax
push ecx
lea eax, [ecx + 3]
push eax
call sub.MSVCRT.dll_memmove
mov edx, dword [esp + 0x40]
add ebx, 3
mov eax, dword [esp + 0x4c]
mov ecx, ebx
sub ecx, edx
add esp, 0xc
sar ecx, 8
mov byte [edx], 0x7b
mov byte [eax], cl
mov al, bl
sub al, dl
mov edx, dword [esp + 0x44]
mov byte [edx], al
mov byte [ebx], 0x72
mov byte [ebx + 1], cl
mov byte [ebx + 2], al
add ebx, 3
mov ecx, dword [esp + 0x84]
mov eax, dword [edi + 0x20]
add ecx, 6
mov dword [esp + 0x84], ecx
mov eax, dword [eax]
mov dword [edi + 0x20], eax
jmp 0x527835
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x84]
mov eax, dword [eax]
mov dword [edi + 0x20], eax
jmp 0x527835
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x8c]
mov dword [eax], esi
mov eax, dword [esp + 0x7c]
mov dword [eax], edx
mov eax, dword [esp + 0x80]
mov dword [eax], ebp
test ebx, ebx
je 0x52788c
mov edx, dword [ebx]
mov eax, 0x7fffffeb
sub eax, edx
cmp eax, ecx
jge 0x527887
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x48
ret
lea eax, [edx + ecx]
mov dword [ebx], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret