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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [esp + 0x44]
movsx eax, byte [esp + 0x40]
lea ecx, [eax - 0x42]
cmp ecx, 0x36
ja case.default.0x5196ab
jmp dword [ecx*4 + 0x519954]
mov eax, dword [esi + 8]
cmp byte [eax + 9], 0
jns 0x5196dc
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
mov dword [esi + 0x14], ecx
mov byte [esi + eax + 0x10], 0x30
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
mov al, byte [eax + 8]
lea edx, [ecx + 1]
mov dword [esi + 0x14], edx
mov byte [esi + ecx + 0x10], al
mov ecx, dword [esi + 0xc]
xor eax, eax
mov edx, ecx
nop word cs:[eax + eax]
nop dword [eax]
add eax, 1
shr edx, 1
cmp ecx, 1
mov ecx, edx
ja 0x5196f0
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
call fcn.0051a5c0
jmp 0x519918
mov eax, dword [esi + 8]
cmp byte [eax + 9], 0
jns 0x519776
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
mov dword [esi + 0x14], ecx
mov byte [esi + eax + 0x10], 0x30
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
mov al, byte [eax + 8]
lea edx, [ecx + 1]
mov dword [esi + 0x14], edx
mov byte [esi + ecx + 0x10], al
mov ecx, dword [esi + 0xc]
xor eax, eax
mov edx, ecx
nop dword [eax]
add eax, 1
shr edx, 4
cmp ecx, 0xf
mov ecx, edx
ja 0x519780
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
call fcn.0051a2f0
jmp 0x519918
test eax, eax
jne case.0x5196ab.67
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
mov eax, edx
or eax, 1
bsr eax, eax
movzx eax, word [eax + eax + 0x573d40]
cmp edx, dword [eax*4 + 0x573128]
sbb eax, 0
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
call fcn.00519f40
jmp 0x519918
mov ecx, esi
add esp, 0x30
pop esi
pop edi
pop ebx
jmp fcn.00519a30
mov edi, dword [esi]
mov ebx, dword [esi + 0xc]
mov ecx, dword [edi + 8]
lea eax, [ecx + 1]
cmp dword [edi + 0xc], eax
jae 0x519881
mov edx, dword [edi]
mov dword [esp], eax
mov ecx, edi
call dword [edx]
sub esp, 4
mov ecx, dword [edi + 8]
lea eax, [ecx + 1]
mov edx, dword [edi + 4]
mov dword [edi + 8], eax
mov byte [edx + ecx], bl
jmp 0x51991a
mov edx, dword [esi + 0xc]
xor eax, eax
mov ecx, edx
mov edi, edx
nop dword [eax + eax]
add eax, 1
shr edi, 3
cmp ecx, 7
mov ecx, edi
ja 0x5198a0
mov ecx, dword [esi + 8]
cmp byte [ecx + 9], 0
jns 0x5198d0
cmp dword [ecx + 4], eax
jg 0x5198d0
test edx, edx
je 0x5198d0
mov ecx, dword [esi + 0x14]
lea edx, [ecx + 1]
mov dword [esi + 0x14], edx
mov byte [esi + ecx + 0x10], 0x30
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov dword [esp + 0x1c], edx
lea edx, [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
call fcn.0051a860
mov dword [esi], eax
add esp, 0x30
pop esi
pop edi
pop ebx
ret
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp], eax
mov dword [esp + 0x10], 0x572e6c
mov dword [esp + 0xc], 0x6b2
mov dword [esp + 8], str.external_fmtlib_include_fmt_format.h
call fcn.0050a710
call fcn.004949d0
nop
mov dl, 0x96
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [edx - 0x68], dl
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [edi + edx*4 + 0x51], cl
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [edx + 0x5f005196], dh
cwde
push ecx
add ch, ah
xchg edi, eax
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [edi + 0x21005198], cl
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [ecx], ah
cdq
push ecx
add byte [edi + edx*4 + 0x51], cl
add byte [ebp - 0x77], dl
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x280
mov esi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x74]
test eax, eax
je 0x519a6c
push eax
call fcn.00427390
jmp 0x519a71
call fcn.004272c0
mov ebx, dword [0x573fd8]
lea edi, [esp + 0x74]
mov ecx, edi
push ebx
call fcn.00427e00
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push eax
call dword [edx + 0x14]
mov ecx, edi
call fcn.004273a0
movzx eax, byte [esp + 0x18]
test al, 1
je 0x519aaa
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x519ab0
jmp 0x519b2b
shr eax, 1
test eax, eax
je 0x519b2b
mov eax, dword [esi + 4]
lea ecx, [esp + 0x74]
test eax, eax
je 0x519ac3
push eax
call fcn.00427390
jmp 0x519ac8
call fcn.004272c0
lea edi, [esp + 0x74]
mov ecx, edi
push ebx
call fcn.00427e00
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ebx, eax
mov ecx, edi
call fcn.004273a0
mov byte [esp + 0x30], bl
test bl, bl
je 0x519b2b
mov dword [esp + 0x24], esi
mov edx, dword [esi + 0xc]
mov eax, edx
or eax, 1
bsr eax, eax
movzx eax, word [eax + eax + 0x573d40]
xor ecx, ecx
cmp dword [eax*4 + 0x573128], edx
seta cl
movzx ebx, byte [esp + 0x18]
lea esi, [esp + 0x19]
test bl, 1
je 0x519ba3
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x519ba5
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
mov eax, edx
or eax, 1
bsr eax, eax
movzx eax, word [eax + eax + 0x573d40]
cmp edx, dword [eax*4 + 0x573128]
sbb eax, 0
mov dword [esp + 0x28], ecx
lea ecx, [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
sub esp, 0x1c
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x90]
movsd qword [esp + 8], xmm0
mov edx, dword [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
call fcn.00519f40
add esp, 0x1c
mov dword [esi], eax
jmp 0x519ead
shr ebx, 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], ecx
sub eax, ecx
lea ecx, [esi + ebx]
mov dword [esp + 0x34], ecx
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x519bf8
lea ecx, [eax + ebx]
mov dword [esp + 0x14], ecx
mov edi, eax
mov edx, eax
nop dword [eax]
movsx ecx, byte [esi]
mov eax, ecx
add al, 0x81
cmp al, 0x82
jb 0x519bfc
mov eax, edx
sub eax, ecx
jle 0x519bfc
add edi, 1
add esi, 1
mov edx, eax
add ebx, 0xffffffff
jne 0x519bd0
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
jmp 0x519c0a
mov edx, eax
mov edi, eax
mov dword [esp + 0x14], edi
mov eax, edx
mov ecx, dword [esp + 0x34]
cmp esi, ecx
jne 0x519c1a
add eax, 0xffffffff
movsx ecx, byte [ecx - 1]
cdq
idiv ecx
add eax, edi
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x10]
lea esi, [esp + eax]
add esi, 0x40
mov edi, dword [esp + 0x2c]
cmp edi, 0x64
jb 0x519c84
mov ecx, 0x51eb851f
nop
mov eax, edi
mul ecx
shr edx, 5
imul eax, edx, 0x64
mov ebx, edi
sub ebx, eax
movzx eax, word [ebx + ebx + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [esi - 2], ax
add esi, 0xfffffffe
cmp edi, 0x270f
mov edi, edx
ja 0x519c50
cmp edx, 9
ja 0x519c8b
add dl, 0x30
mov byte [esi - 1], dl
jmp 0x519c97
mov edx, edi
cmp edx, 9
jbe 0x519c7c
movzx eax, word [edx + edx + str.000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798990123456789abcdef]
mov word [esi - 2], ax
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x7c]
push 0x200
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x74], 0x573e78
lea ebx, [esp + 0x84]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], 0x1f4
add edi, dword [esi + 0x14]
js 0x519f04
mov esi, 0x1f4
cmp edi, 0x1f5
mov ecx, dword [esp + 0xc]
jb 0x519d2d
cmp edi, 0x2ef
mov esi, 0x2ee
cmovae esi, edi
push esi
call fcn.0041a1e0
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x519d1e
push eax
lea eax, [esp + 0x88]
push eax
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], esi
mov ecx, dword [esp + 0xc]
cmp esi, edi
cmovae esi, edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x14], edi
add edi, ebx
add edi, 0xffffffff
cmp dword [esp + 0x10], 2
jl 0x519df4
neg ecx
test byte [esp + 0x18], 1
lea edx, [esp + 0x19]
je 0x519d5b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
lea esi, [ecx + eax]
add esi, 1
mov dword [esp + 0x10], 0
jmp 0x519da9
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
add ecx, edx
cmp eax, ecx
mov edx, dword [esp + 0xc]
cmovne edx, eax
movzx eax, byte [esp + 0x30]
mov byte [edi - 1], al
mov eax, 0
cmovne ebx, eax
mov dword [esp + 0x10], ebx
add edi, 0xfffffffe
mov ebx, edi
add esi, 0xffffffff
mov edi, ebx
cmp esi, 2
jbe 0x519df6
movzx eax, byte [esp + esi + 0x3e]
lea ebx, [edi - 1]
mov byte [edi], al
movzx ecx, byte [edx]
test cl, cl
jle 0x519d9f
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
add eax, 1
mov dword [esp + 0x10], eax
cdq
idiv ecx
test edx, edx
jne 0x519dee
cmp cl, 0x7f
mov edx, dword [esp + 0xc]
je 0x519d9f
lea eax, [edx + 1]
movzx edx, byte [esp + 0x18]
test dl, 1
jne 0x519d6f
shr edx, 1
lea ecx, [esp + 0x19]
jmp 0x519d77
mov edx, dword [esp + 0xc]
jmp 0x519d9f
mov ebx, edi
mov al, byte [esp + 0x40]
mov byte [ebx], al
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x14], 0
je 0x519e0a
mov byte [ebx - 1], 0x2d
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 8]
mov ecx, dword [ebx]
test ecx, ecx
js 0x519f04
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
xor edi, edi
mov esi, dword [esp + 0x14]
sub ecx, esi
cmovb ecx, edi
movzx eax, byte [ebx + 9]
and eax, 0xf
mov al, byte [eax + 0x573c25]
mov byte [esp + 0xc], al
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov edx, ecx
mov cl, byte [esp + 0xc]
shr edx, cl
add ebx, 0xa
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
push ebx
mov dword [esp + 0x30], edx
push edx
push eax
call fcn.005159e0
add esp, 0xc
mov ebx, eax
test esi, esi
jne 0x519eea
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
push dword [esp + 0xc]
push ecx
push eax
call fcn.005159e0
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x84]
cmp eax, ecx
je 0x519ead
push eax
call fcn.0041a380
add esp, 4
test byte [esp + 0x18], 1
je 0x519ec0
push dword [esp + 0x20]
call fcn.0041a380
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + edi]
mov esi, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [esi + ecx], dl
add edi, 1
cmp dword [esp + 0x14], edi
je 0x519e71
mov ecx, dword [ebx + 8]
lea eax, [ecx + 1]
cmp dword [ebx + 0xc], eax
jae 0x519ed0
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx]
mov ecx, dword [ebx + 8]
lea eax, [ecx + 1]
jmp 0x519ed0
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], str.negative_value
mov dword [esp + 0xc], 0x146
mov dword [esp + 8], str.external_fmtlib_include_fmt_core.h
call fcn.0050a710
add esp, 0x14
call fcn.004949d0
int3