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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esi, 1
cmp esi, ebx
je 0x520eff
mov edi, dword [ebp + 0x10]
mov al, byte [esi]
cmp al, 0x7b
je 0x520a6c
cmp al, 0x7d
jne 0x520ab7
mov eax, dword [edi + 0xc]
test eax, eax
js 0x520eff
lea ecx, [eax + 1]
mov dword [edi + 0xc], ecx
mov ebx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
test edx, edx
js 0x520b73
cmp eax, 0xe
fldz
ja 0x520efd
fstp st(0)
lea ecx, [eax*4]
shrd ebx, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, ebx
and edx, 0xf
fldz
je 0x520efd
fstp st(0)
mov ecx, dword [edi + 0x20]
shl eax, 4
fld xword [ecx + eax]
fld st(0)
fstp xword [esp + 0x68]
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
jmp 0x520ba6
mov ebx, dword [edi + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea eax, [ecx + 1]
cmp edx, eax
jae 0x520a8c
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea eax, [ecx + 1]
mov edi, esi
cmp edx, eax
jae 0x520a9f
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx]
mov ecx, dword [ebx + 8]
lea eax, [ecx + 1]
mov dl, byte [edi]
mov esi, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [esi + ecx], dl
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x10], ebx
mov esi, edi
jmp 0x520ef0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0
lea eax, [esp + 0x3c]
push eax
push ebx
push esi
call fcn.005210c0
add esp, 0xc
cmp eax, ebx
je 0x520eff
mov esi, eax
movsx eax, byte [eax]
cmp eax, 0x3a
je 0x520b4b
cmp eax, 0x7d
jne 0x520eff
mov eax, dword [esp + 0x40]
mov ebx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
test edx, edx
js 0x520c10
cmp eax, 0xe
fldz
jg 0x520efd
fstp st(0)
lea ecx, [eax*4]
shrd ebx, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, ebx
and edx, 0xf
fldz
je 0x520efd
fstp st(0)
mov ecx, dword [edi + 0x20]
shl eax, 4
fld xword [ecx + eax]
fld st(0)
fstp xword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
jmp 0x520c43
add esi, 1
mov ecx, edi
push ebx
push esi
push dword [esp + 0x48]
call fcn.00521280
cmp eax, ebx
je 0x520eff
mov esi, eax
cmp byte [eax], 0x7d
je 0x520ef0
jmp 0x520eff
cmp eax, ebx
fldz
jge 0x520efd
fstp st(0)
mov ecx, dword [edi + 0x20]
lea eax, [eax + eax*2]
fld xword [ecx + eax*8]
fld st(0)
fstp xword [esp + 0x78]
mov edx, dword [ecx + eax*8 + 0x10]
test edx, edx
je 0x520efd
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov ebx, dword [edi + 0x10]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x94], ecx
movsd xmm0, qword [edi + 0x18]
movsd qword [esp + 0x8c], xmm0
add edx, 0xffffffff
cmp edx, 0xe
ja case.0x520c6a.4
jmp dword [edx*4 + 0x520f7c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0x200000
mov word [esp + 0x1c], 0
mov byte [esp + 0x1e], 1
mov dword [esp + 0x3c], 0
sub esp, 0x24
mov eax, dword [esp + 0x60]
jmp 0x520e76
cmp eax, ebx
fldz
jge 0x520efd
fstp st(0)
mov ecx, dword [edi + 0x20]
lea eax, [eax + eax*2]
fld xword [ecx + eax*8]
fld st(0)
fstp xword [esp + 0x58]
mov edx, dword [ecx + eax*8 + 0x10]
test edx, edx
je 0x520efd
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov ebx, dword [edi + 0x10]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x94], ecx
movsd xmm0, qword [edi + 0x18]
movsd qword [esp + 0x8c], xmm0
add edx, 0xffffffff
cmp edx, 0xe
ja case.0x520c6a.4
jmp dword [edx*4 + 0x520fb8]
fstp st(0)
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
push eax
call fcn.0051cf80
add esp, 8
jmp 0x520eed
fstp st(0)
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
push eax
call fcn.0050f2a0
add esp, 8
jmp 0x520eed
fstp st(0)
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
push eax
push dword [esp + 0x10]
push ecx
call fcn.0051d150
add esp, 0xc
jmp 0x520eed
fstp st(0)
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
push eax
push dword [esp + 0x10]
push ecx
call fcn.0050f430
add esp, 0xc
jmp 0x520eed
fstp st(0)
xor eax, eax
cmp byte [esp + 0xc], 0
sete al
mov ecx, 0x572f7f
mov edx, 0x572f7a
cmove edx, ecx
add eax, edx
add eax, 4
jmp 0x520da9
fstp st(0)
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea eax, [ecx + 1]
cmp edx, eax
jae 0x520d25
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea eax, [ecx + 1]
cmp edx, eax
jae 0x520d36
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx]
mov ecx, dword [ebx + 8]
lea eax, [ecx + 1]
mov edx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xc]
mov byte [edx + ecx], al
mov dword [edi + 0x10], ebx
jmp 0x520ef0
fstp st(0)
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
push eax
call fcn.0051d3c0
add esp, 8
jmp 0x520eed
fstp st(0)
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
push eax
push dword [esp + 0x10]
push ecx
call fcn.0051e650
add esp, 0xc
jmp 0x520eed
fstp st(0)
mov eax, dword [esp + 0xc]
test eax, eax
je 0x520f54
push eax
mov dword [esp + 0x10], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
jmp 0x520da3
fstp st(0)
mov edx, dword [esp + 0xc]
add eax, edx
mov ecx, ebx
push eax
push edx
call fcn.0050e0a0
mov dword [edi + 0x10], ebx
jmp 0x520ef0
fstp st(0)
lea ecx, [esp + 0x8c]
mov edx, dword [edi + 0x28]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [ecx]
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push edx
push dword [esp + 0x14]
call eax
add esp, 0xc
mov eax, dword [esp + 0x10]
jmp 0x520eed
fstp st(0)
mov eax, 2
mov edx, dword [esp + 0xc]
mov ecx, edx
nop word cs:[eax + eax]
nop
shr ecx, 4
add eax, 1
cmp edx, 0xf
mov edx, ecx
ja 0x520e30
jmp 0x520ebd
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0x200000
mov word [esp + 0x1c], 0
mov byte [esp + 0x1e], 1
mov dword [esp + 0x44], 0
sub esp, 0x24
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], eax
movups xmm0, xmmword [esp + 0x34]
movups xmmword [esp + 0x10], xmm0
mov eax, dword [esp + 0x54]
mov dword [esp], eax
fstp xword [esp + 4]
call fcn.0051f5c0
add esp, 0x24
jmp 0x520eed
fstp st(0)
mov eax, 2
mov edx, dword [esp + 0xc]
mov ecx, edx
nop word cs:[eax + eax]
shr ecx, 4
add eax, 1
cmp edx, 0xf
mov edx, ecx
ja 0x520eb0
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
lea ecx, [eax - 2]
mov dword [esp + 0x14], ecx
add eax, dword [ebx + 8]
cmp dword [ebx + 0xc], eax
jae 0x520edb
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx]
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call fcn.005206b0
mov dword [edi + 0x10], eax
add esi, 1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
fstp st(0)
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], 0x572e6c
mov dword [esp + 0xc], 0xab1
mov dword [esp + 8], str.external_fmtlib_include_fmt_format_inl.h
call fcn.0050a710
add esp, 0x14
call fcn.004949d0
fstp st(0)
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], 0x572e6c
mov dword [esp + 0xc], 0x7d7
jmp 0x520f72
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], 0x572e6c
mov dword [esp + 0xc], 0x816
mov dword [esp + 8], str.external_fmtlib_include_fmt_format.h
jmp 0x520f25