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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x290
lea eax, [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x10], 2
mov edi, dword [ebp + 0x20]
jne 0x50b164
mov eax, dword [eax]
movzx eax, word [eax]
cmp eax, 0x7d7b
je 0x50b297
lea eax, [esp + 0x88]
push 0x200
push 0
push eax
mov dword [esp + 0x10], edi
mov edi, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
movsd xmm0, qword [eax]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x80], 0x573e78
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
lea esi, [esp + 0x90]
mov dword [esp + 0x84], esi
mov dword [esp + 0x8c], 0x1f4
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x24], 0
sub esp, 0x20
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
movups xmm0, xmmword [esp + 0x48]
movups xmmword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0xa0]
mov dword [esp], eax
call fcn.0050c0c0
add esp, 0x20
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov edi, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
cmp ebx, 0xb
jae 0x50b23a
mov eax, ebx
add al, bl
mov byte [edi], al
add edi, 1
test ebx, ebx
jne 0x50b267
jmp 0x50b272
lea esi, [ebx + 0x10]
and esi, 0xfffffff0
push esi
mov dword [esp + 8], ecx
call fcn.0041a1e0
add esp, 4
mov ecx, edi
mov edi, eax
mov dword [ecx + 8], eax
or esi, 1
mov dword [ecx], esi
lea esi, [esp + 0x90]
mov dword [ecx + 4], ebx
mov ecx, dword [esp + 4]
push ebx
push ecx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x50b28a
push eax
call fcn.0041a380
add esp, 4
mov edi, dword [ebp + 8]
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
js 0x50b2ba
and edx, 0xf
fldz
je 0x50bb9e
fstp st(0)
fld xword [esi]
fld st(0)
fstp xword [esp + 0x38]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
jmp 0x50b2e1
test edx, edx
fldz
jle 0x50bb9e
fstp st(0)
fld xword [esi]
fld st(0)
fstp xword [esp + 0x48]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x50bb9e
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edi, dword [ebp + 8]
add edx, 0xffffffff
cmp edx, 0xe
ja case.0x50b2f0.4
jmp dword [edx*4 + 0x572ae0]
fstp st(0)
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x87], 0
mov ecx, ebx
neg ecx
cmovs ecx, ebx
mov eax, ecx
or eax, 1
bsr eax, eax
movzx edx, word [eax + eax + 0x573d40]
cmp ecx, dword [edx*4 + 0x573128]
sbb edx, 0
xor eax, eax
test ebx, ebx
jns 0x50b34e
mov byte [esp + 0x80], 0x2d
mov eax, 1
mov dword [esp + 0xc], eax
lea esi, [esp + eax]
add esi, 0x80
mov dword [esp + 8], edx
add esi, edx
cmp ecx, 0x64
mov dword [esp + 4], esi
jb 0x50b8db
mov edi, 0x51eb851f
nop word cs:[eax + eax]
nop dword [eax]
mov eax, ecx
mul edi
shr edx, 5
imul eax, edx, 0x64
mov ebx, ecx
sub ebx, eax
movzx eax, word [ebx + ebx + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [esi - 2], ax
add esi, 0xfffffffe
cmp ecx, 0x270f
mov ecx, edx
ja 0x50b380
jmp 0x50b8dd
fstp st(0)
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x87], 0
mov eax, ebx
or eax, 1
bsr eax, eax
movzx eax, word [eax + eax + 0x573d40]
cmp ebx, dword [eax*4 + 0x573128]
sbb eax, 0
mov dword [esp + 4], eax
lea ecx, [esp + eax]
add ecx, 0x80
cmp ebx, 0x64
jb 0x50b8f1
mov esi, 0x51eb851f
nop word cs:[eax + eax]
nop
mov eax, ebx
mul esi
shr edx, 5
imul eax, edx, 0x64
mov edi, ebx
sub edi, eax
movzx eax, word [edi + edi + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [ecx - 2], ax
add ecx, 0xfffffffe
cmp ebx, 0x270f
mov ebx, edx
ja 0x50b410
jmp 0x50b8f3
fstp st(0)
xorps xmm0, xmm0
mov eax, ecx
sar eax, 0x1f
add ebx, eax
mov esi, ecx
adc esi, eax
movaps xmmword [esp + 0x80], xmm0
xor esi, eax
xor ebx, eax
mov eax, ebx
or eax, 1
mov edx, ecx
bsr ecx, esi
xor ecx, 0x1f
bsr eax, eax
xor eax, 0x1f
or eax, 0x20
test esi, esi
cmovne eax, ecx
xor eax, 0x3f
movzx ecx, word [eax + eax + 0x573d40]
cmp ebx, dword [ecx*8 + 0x573158]
mov dword [esp + 0x90], 0
mov eax, esi
sbb eax, dword [ecx*8 + 0x57315c]
sbb ecx, 0
xor eax, eax
test edx, edx
jns 0x50b4af
mov byte [esp + 0x80], 0x2d
mov eax, 1
mov dword [esp + 0x1c], eax
lea edi, [esp + eax]
add edi, 0x80
mov dword [esp + 0x20], ecx
add edi, ecx
cmp ebx, 0x64
mov eax, esi
sbb eax, 0
mov dword [esp + 8], edi
jb 0x50b907
nop word cs:[eax + eax]
nop
mov dword [esp + 0xc], esi
lea eax, [edi - 2]
mov dword [esp + 4], eax
push 0
push 0x64
push esi
push ebx
call fcn.004a1800
add esp, 0x10
imul ecx, eax, 0x64
mov esi, ebx
sub ebx, ecx
movzx ecx, word [ebx + ebx + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [edi - 2], cx
mov ecx, 0x270f
cmp ecx, esi
mov ecx, 0
sbb ecx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov ebx, eax
mov esi, edx
mov edi, ecx
jb 0x50b4e0
jmp 0x50b90d
fstp st(0)
xorps xmm0, xmm0
mov eax, ebx
or eax, 1
mov edx, ecx
bsr ecx, ecx
xor ecx, 0x1f
bsr eax, eax
xor eax, 0x1f
or eax, 0x20
test edx, edx
cmovne eax, ecx
mov ecx, edx
xor eax, 0x3f
movzx edx, word [eax + eax + 0x573d40]
cmp ebx, dword [edx*8 + 0x573158]
movaps xmmword [esp + 0x80], xmm0
mov eax, ecx
sbb eax, dword [edx*8 + 0x57315c]
mov dword [esp + 0x91], 0
mov dword [esp + 0x8d], 0
sbb edx, 0
mov dword [esp + 8], edx
lea esi, [esp + edx]
add esi, 0x80
cmp ebx, 0x64
mov eax, ecx
sbb eax, 0
jb 0x50b92a
nop word cs:[eax + eax]
mov dword [esp + 0xc], ecx
lea eax, [esi - 2]
mov dword [esp + 4], eax
push 0
push 0x64
push ecx
push ebx
call fcn.004a1800
add esp, 0x10
imul ecx, eax, 0x64
mov edi, ebx
sub ebx, ecx
movzx ecx, word [ebx + ebx + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [esi - 2], cx
mov ecx, 0x270f
cmp ecx, edi
mov edi, dword [esp + 4]
mov ecx, 0
sbb ecx, dword [esp + 0xc]
mov ebx, eax
mov ecx, edx
mov esi, edi
jb 0x50b5b0
jmp 0x50b930
fstp st(0)
test bl, bl
mov ecx, 0x572f7f
mov eax, 0x572f7a
cmove eax, ecx
mov edx, 0
sete dl
lea ecx, [edx + 4]
mov esi, edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov edx, ecx
add dl, cl
mov byte [edi], dl
lea edx, [edi + 1]
push ecx
push eax
push edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + edi + 5], 0
jmp 0x50b28d
fstp st(0)
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [edi], 2
mov byte [edi + 1], bl
jmp 0x50b28d
fstp st(0)
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x80]
push ebx
push eax
call fcn.005109c0
add esp, 8
jmp 0x50b28d
fstp st(0)
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x80]
push ecx
push ebx
push eax
call fcn.00511ac0
add esp, 0xc
jmp 0x50b28d
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [esp + 0x60], edi
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x88], 0x200000
mov word [esp + 0x8c], 0
mov byte [esp + 0x8e], 1
mov dword [esp + 0x10], 0
sub esp, 0x24
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
movups xmm0, xmmword [esp + 0xa4]
movups xmmword [esp + 0x10], xmm0
mov eax, dword [esp + 0x84]
mov dword [esp], eax
fstp xword [esp + 4]
call fcn.00512a70
add esp, 0x24
jmp 0x50b28d
fstp st(0)
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x80]
push ebx
push eax
call fcn.00513b10
add esp, 8
jmp 0x50b28d
fstp st(0)
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov esi, ecx
mov ecx, edi
push 0
push esi
call fcn.0041dc90
test esi, esi
je 0x50b28d
mov ecx, esi
test byte [edi], 1
je 0x50bb89
mov eax, dword [edi + 8]
jmp 0x50bb8e
fstp st(0)
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov esi, 1
mov ecx, ebx
mov eax, ebx
nop word [eax + eax]
shr eax, 4
add esi, 1
cmp ecx, 0xf
mov ecx, eax
ja 0x50b7f0
lea eax, [esi + 1]
mov ecx, edi
push 0
push eax
call fcn.0041dc90
test byte [edi], 1
je 0x50b94b
mov eax, dword [edi + 8]
jmp 0x50b950
fstp st(0)
lea eax, [esp + 0x88]
push 0x200
push 0
push eax
mov esi, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x80], 0x573e78
lea eax, [esp + 0x90]
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], 0x1f4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
lea eax, [esp + 0x80]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
call esi
add esp, 0xc
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
cmp ebx, 0xb
jae 0x50b980
mov eax, ebx
add al, bl
mov byte [edi], al
add edi, 1
test ebx, ebx
jne 0x50b9a6
jmp 0x50b9b1
mov edx, ecx
cmp edx, 9
ja 0x50b9d0
add dl, 0x30
mov byte [esi - 1], dl
jmp 0x50b9dc
mov edx, ebx
cmp edx, 9
ja 0x50ba20
add dl, 0x30
mov byte [ecx - 1], dl
jmp 0x50ba2c
mov ecx, edi
mov eax, ebx
mov edx, esi
mov esi, ecx
xor ecx, ecx
mov edi, 9
cmp edi, eax
sbb ecx, edx
jb 0x50ba35
add al, 0x30
mov byte [esi - 1], al
jmp 0x50ba41
mov edi, esi
mov eax, ebx
mov edx, ecx
xor ecx, ecx
mov esi, 9
cmp esi, eax
sbb ecx, edx
jb 0x50ba85
add al, 0x30
mov byte [edi - 1], al
jmp 0x50ba91
mov eax, edi
add eax, 1
mov word [eax], 0x7830
add esi, eax
mov eax, ebx
nop dword [eax]
mov ecx, ebx
and ecx, 0xf
movzx ecx, byte [ecx + 0x573bec]
mov byte [esi], cl
shr eax, 4
add esi, 0xffffffff
cmp ebx, 0x10
mov ebx, eax
jae 0x50b960
jmp 0x50b28d
lea esi, [ebx + 0x10]
and esi, 0xfffffff0
push esi
mov dword [esp + 8], ecx
call fcn.0041a1e0
add esp, 4
mov ecx, edi
mov edi, eax
mov dword [ecx + 8], eax
or esi, 1
mov dword [ecx], esi
mov dword [ecx + 4], ebx
mov ecx, dword [esp + 4]
push ebx
push ecx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x50b281
jmp 0x50b28a
movzx eax, word [edx + edx + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [esi - 2], ax
mov edi, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
lea ecx, [esp + 0x80]
mov eax, dword [esp + 4]
mov ebx, eax
sub ebx, ecx
cmp ebx, 0xfffffff0
jae 0x50bbd3
cmp ebx, 0xa
ja 0x50bb06
add bl, bl
mov byte [edi], bl
add edi, 1
jmp 0x50bb2f
movzx eax, word [edx + edx + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [ecx - 2], ax
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 4]
jmp 0x50ba98
movzx eax, word [eax + eax + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [esi - 2], ax
mov edi, dword [ebp + 8]
mov edx, dword [esp + 8]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
lea eax, [esp + 0x80]
mov ebx, edx
sub ebx, eax
cmp ebx, 0xfffffff0
jae 0x50bbd3
cmp ebx, 0xa
ja 0x50bb3f
add bl, bl
mov byte [edi], bl
add edi, 1
jmp 0x50bb68
movzx eax, word [eax + eax + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [edi - 2], ax
mov ebx, dword [esp + 8]
mov edi, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
cmp ebx, 0xfffffff0
jae 0x50bbd3
cmp ebx, 0xb
jae 0x50bacc
mov eax, ebx
add al, bl
mov byte [edi], al
add edi, 1
test ebx, ebx
jne 0x50baea
jmp 0x50bb81
lea esi, [ebx + 0x10]
and esi, 0xfffffff0
push esi
call fcn.0041a1e0
add esp, 4
mov ecx, edi
mov edi, eax
mov dword [ecx + 8], eax
or esi, 1
mov dword [ecx], esi
mov dword [ecx + 4], ebx
lea eax, [esp + 0x80]
push ebx
push eax
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, ebx
mov byte [edi], 0
jmp 0x50b28a
lea esi, [ebx + 0x10]
and esi, 0xfffffff0
push esi
call fcn.0041a1e0
add esp, 4
mov ecx, edi
mov edi, eax
mov dword [ecx + 8], eax
or esi, 1
mov dword [ecx], esi
mov eax, dword [esp + 4]
mov dword [ecx + 4], ebx
lea ecx, [esp + 0x80]
cmp ecx, eax
je 0x50bb81
mov esi, dword [esp + 0xc]
add esi, dword [esp + 8]
push esi
push ecx
jmp 0x50bb76
lea esi, [ebx + 0x10]
and esi, 0xfffffff0
push esi
call fcn.0041a1e0
mov edx, dword [esp + 0xc]
add esp, 4
mov ecx, edi
mov edi, eax
lea eax, [esp + 0x80]
mov dword [ecx + 8], edi
or esi, 1
mov dword [ecx], esi
mov dword [ecx + 4], ebx
cmp eax, edx
je 0x50bb81
mov esi, dword [esp + 0x1c]
add esi, dword [esp + 0x20]
push esi
push eax
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
mov byte [edi], 0
jmp 0x50b28a
mov eax, edi
add eax, 1
push ecx
push ebx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
jmp 0x50b28d
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
mov ecx, edi
call fcn.0041d590
fstp st(0)
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 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
mov dword [esp + 8], str.external_fmtlib_include_fmt_format.h
jmp 0x50bbc6