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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, dword [esp + 0x50]
movsx eax, byte [esp + 0x4c]
lea ecx, [eax - 0x42]
cmp ecx, 0x36
ja case.default.0x51ab3c
jmp dword [ecx*4 + 0x51ae58]
mov eax, dword [esi + 8]
cmp byte [eax + 9], 0
jns 0x51ab6d
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 1]
mov dword [esi + 0x1c], ecx
mov byte [esi + eax + 0x18], 0x30
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
mov al, byte [eax + 8]
lea edx, [ecx + 1]
mov dword [esi + 0x1c], edx
mov byte [esi + ecx + 0x18], al
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
xor eax, eax
mov ecx, 1
mov ebx, edi
nop dword [eax]
add eax, 1
mov ebp, edi
shld ebp, edx, 0x1f
shr ebx, 1
cmp ecx, edx
mov edx, 0
sbb edx, edi
mov edx, ebp
mov edi, ebx
jb 0x51ab80
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x18]
mov edx, dword [esi + 0x1c]
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.0051bbb0
jmp 0x51ae1c
mov eax, dword [esi + 8]
cmp byte [eax + 9], 0
jns 0x51ac14
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 1]
mov dword [esi + 0x1c], ecx
mov byte [esi + eax + 0x18], 0x30
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
mov al, byte [eax + 8]
lea edx, [ecx + 1]
mov dword [esi + 0x1c], edx
mov byte [esi + ecx + 0x18], al
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
xor eax, eax
mov ecx, 0xf
mov ebx, edi
nop word cs:[eax + eax]
nop dword [eax]
add eax, 1
mov ebp, edi
shld ebp, edx, 0x1c
shr ebx, 4
cmp ecx, edx
mov edx, 0
sbb edx, edi
mov edx, ebp
mov edi, ebx
jb 0x51ac30
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x18]
mov edx, dword [esi + 0x1c]
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.0051b8c0
jmp 0x51ae1c
test eax, eax
jne case.0x51ab3c.67
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, edx
or eax, 1
bsr edi, ecx
xor edi, 0x1f
bsr eax, eax
xor eax, 0x1f
or eax, 0x20
test ecx, ecx
cmovne eax, edi
xor eax, 0x3f
movzx eax, word [eax + eax + 0x573d40]
cmp edx, dword [eax*8 + 0x573158]
sbb ecx, dword [eax*8 + 0x57315c]
mov ecx, dword [esi]
sbb eax, 0
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x18]
mov edx, dword [esi + 0x1c]
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.0051b580
jmp 0x51ae1c
mov ecx, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0051af40
mov edi, dword [esi]
mov ebx, dword [esi + 0x10]
mov ecx, dword [edi + 8]
lea eax, [ecx + 1]
cmp dword [edi + 0xc], eax
jae 0x51ad5e
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 0x51ae1e
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
xor eax, eax
mov ecx, 7
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edi
mov ebx, edi
nop word cs:[eax + eax]
nop dword [eax]
add eax, 1
mov ebp, edi
shld ebp, edx, 0x1d
shr ebx, 3
cmp ecx, edx
mov edx, 0
sbb edx, edi
mov edx, ebp
mov edi, ebx
jb 0x51ad90
mov ecx, dword [esi + 8]
cmp byte [ecx + 9], 0
jns 0x51add4
cmp dword [ecx + 4], eax
jg 0x51add4
mov edx, dword [esp + 0x30]
or dword [esp + 0x34], edx
je 0x51add4
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + 1]
mov dword [esi + 0x1c], edx
mov byte [esi + ecx + 0x18], 0x30
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov dword [esp + 0x1c], edx
lea edx, [esi + 0x18]
mov edi, dword [esi + 0x1c]
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.0051be90
mov dword [esi], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
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
inc ebx
stosd dword es:[edi], eax
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ch
lodsd eax, dword [esi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add dl, ch
stosd dword es:[edi], eax
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [ebx - 0x55], al
push ecx
add byte [ebp*4 - 0x535cffaf], bh
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [ebp + ebp*4 + 0x51], ch
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add byte [esi], ah
scasb al, byte es:[edi]
push ecx
add dl, ch
stosd dword es:[edi], eax
push ecx
add ah, cl
int3