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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, dword [esp + 0x4c]
movsx eax, byte [esp + 0x48]
lea ecx, [eax - 0x42]
cmp ecx, 0x36
ja case.default.0x523208
jmp dword [ecx*4 + 0x52335c]
mov ecx, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
jmp 0x523520
mov ecx, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
jmp 0x523440
test eax, eax
jne case.0x523208.67
mov eax, dword [esi + 0xc]
mov ecx, eax
or ecx, 1
bsr ecx, ecx
movzx ebx, word [ecx + ecx + 0x573d40]
cmp eax, dword [ebx*4 + 0x573128]
sbb ebx, 0
lea ebp, [esi + 0x10]
mov edi, dword [esi + 0x14]
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
sub esp, 0x10
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], eax
mov dword [esp], ebx
lea ecx, [esp + 0x10]
call fcn.0051a050
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push dword [esp + 0x14]
push ecx
call fcn.00523c40
add esp, 0x14
mov dword [esi], eax
jmp 0x523310
mov ecx, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005236e0
mov edi, dword [esi]
mov ebx, dword [esi + 0xc]
mov ecx, dword [edi + 8]
lea eax, [ecx + 1]
cmp dword [edi + 0xc], eax
jae 0x523307
mov edx, dword [edi]
mov ecx, edi
push eax
call dword [edx]
mov ecx, dword [edi + 8]
lea eax, [ecx + 1]
mov edx, dword [edi + 4]
mov dword [edi + 8], eax
mov byte [edx + ecx], bl
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
jmp 0x523600
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], 0x6b2
mov dword [esp + 8], str.external_fmtlib_include_fmt_format.h
call fcn.0050a710
add esp, 0x14
call fcn.004949d0
nop dword [eax]
rdmsr
push edx
add byte [esi], ah
xor edx, dword [edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
fdiv qword [edx]
push edx
add byte [esi], ah
xor edx, dword [edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
sbb eax, 637555250
xor edx, dword [edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
rdmsr
push edx
add dl, ch
xor dl, byte [edx]
xor esi, dword [edx]
push edx
add byte [esi], ah
xor edx, dword [edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
sbb byte [ebx], dh
push edx
add byte [esi], ah
xor edx, dword [edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
xor edx, dword es:[edx]
sbb eax, -872394190
int3
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
mov eax, dword [ecx + 8]
cmp byte [eax + 9], 0
jns 0x523473
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 eax, dword [esi + 0xc]
xor edi, edi
mov ecx, eax
nop word [eax + eax]
add edi, 1
shr ecx, 4
cmp eax, 0xf
mov eax, ecx
ja 0x523480
lea ebp, [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
sub esp, 0x10
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], eax
mov dword [esp], edi
lea ecx, [esp + 0x10]
call fcn.0051a050
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push dword [esp + 0x14]
push ecx
call fcn.00523f10
add esp, 0x14
mov dword [esi], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
mov eax, dword [ecx + 8]
cmp byte [eax + 9], 0
jns 0x523553
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 eax, dword [esi + 0xc]
xor edi, edi
mov ecx, eax
nop word [eax + eax]
add edi, 1
shr ecx, 1
cmp eax, 1
mov eax, ecx
ja 0x523560
lea ebp, [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
sub esp, 0x10
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], eax
mov dword [esp], edi
lea ecx, [esp + 0x10]
call fcn.0051a050
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push dword [esp + 0x14]
push ecx
call fcn.005241f0
add esp, 0x14
mov dword [esi], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
mov eax, dword [ecx + 0xc]
xor edi, edi
mov ecx, eax
mov edx, eax
nop word cs:[eax + eax]
nop dword [eax]
add edi, 1
shr edx, 3
cmp ecx, 7
mov ecx, edx
ja 0x523620
mov ecx, dword [esi + 8]
cmp byte [ecx + 9], 0
jns 0x523650
cmp dword [ecx + 4], edi
jg 0x523650
test eax, eax
je 0x523650
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
mov dword [esi + 0x14], ecx
mov byte [esi + eax + 0x10], 0x30
mov ecx, dword [esi + 8]
mov dword [esp + 8], ecx
lea ebp, [esi + 0x10]
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov ebx, dword [esi + 0x14]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
sub esp, 0x10
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], edi
lea ecx, [esp + 0x10]
call fcn.0051a050
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push dword [esp + 0x14]
push ecx
call fcn.00524490
add esp, 0x14
mov dword [esi], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret