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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov ebx, dword [edx + 4]
mov dword [esp + 0x60], esi
mov eax, esi
or eax, 1
bsr ecx, ebx
xor ecx, 0x1f
bsr eax, eax
xor eax, 0x1f
or eax, 0x20
test ebx, ebx
cmovne eax, ecx
xor eax, 0x3f
movzx edi, word [eax + eax + 0x591990]
mov dword [esp + 0x70], esi
cmp esi, dword [edi*8 + 0x590da8]
mov eax, ebx
sbb eax, dword [edi*8 + 0x590dac]
mov dword [esp + 0x64], ebx
sbb edi, 0
mov dword [esp + 0x2c], edi
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
movzx ecx, ah
mov dword [esp + 0x28], ecx
movzx eax, byte [ebp + 0x1c]
mov dword [esp + 0x20], eax
js 0x4b3f70
lea esi, [ebp + 0x14]
mov dword [esp + 0x6c], ecx
cmp ecx, 1
mov eax, edi
sbb eax, 0xffffffff
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 8]
lea eax, [ecx + edi]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
cmp dl, 1
je 0x4b3c42
movzx edx, dl
test edx, edx
jne 0x4b3bef
test eax, eax
mov edx, 0x10
cmovg edx, eax
cmp dword [esp + 0x24], 0xfffffffd
jl 0x4b3c42
cmp dword [esp + 0x24], edx
jg 0x4b3c42
mov edx, dword [esp + 0x24]
mov dword [esp + 0x74], edx
test ecx, ecx
js 0x4b3d60
add ecx, dword [esp + 0x18]
sub eax, edx
mov dword [esp + 0x14], eax
test dword [esp + 0x1c], 0x100000
mov ebx, dword [ebp + 0x10]
je 0x4b3e2f
test eax, eax
jg 0x4b3e29
movzx edx, byte [esp + 0x1c]
cmp edx, 2
je 0x4b3e29
mov dword [esp + 0x14], 1
mov eax, 1
jmp 0x4b3e2d
add ecx, edi
dec ecx
mov dword [esp + 0x68], ecx
test dword [esp + 0x1c], 0x100000
jne 0x4b3c68
xor ecx, ecx
cmp edi, 1
mov eax, dword [esp + 0x20]
movzx eax, al
cmove eax, ecx
mov edx, dword [esp + 0x18]
jmp 0x4b3c7b
sub eax, edi
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov edx, dword [esp + 0x18]
add edx, ecx
mov eax, dword [esp + 0x20]
test dword [esp + 0x1c], 0x10000
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x30], esi
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x3c], ebx
mov esi, dword [esp + 0x70]
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], edi
mov byte [esp + 0x44], al
mov dword [esp + 0x48], ecx
mov ecx, eax
sete al
shl al, 5
or al, 0x45
mov byte [esp + 0x4c], al
mov edi, dword [esp + 0x68]
mov dword [esp + 0x50], edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx]
test esi, esi
jle 0x4b3e0d
mov eax, 1
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
sub eax, ecx
test ecx, ecx
cmovle edi, eax
xor eax, eax
cmp edi, 0x3e8
setge al
add eax, 3
cmp edi, 0x64
mov ecx, 2
cmovge ecx, eax
add edx, ecx
cmp byte [esp + 0x20], 1
sbb edx, 0
add edx, 3
xor eax, eax
sub esi, edx
cmovb esi, eax
movzx eax, byte [ebx + 9]
and eax, 0xf
movzx ecx, byte [eax + 0x591875]
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov edi, esi
shr edi, cl
add ebx, 0xa
mov eax, dword [esp + 0x10]
push ebx
push edi
push eax
call fcn.004b3100
add esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.004b3fb0
jmp 0x4b3eb4
test edx, edx
mov ebx, dword [ebp + 0x10]
jle 0x4b3ed1
mov ecx, dword [esp + 0x1c]
shl ecx, 0xb
sar ecx, 0x1f
sub eax, edi
and eax, ecx
mov dword [esp + 0x14], eax
lea ecx, [ebp + 8]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x3c], ecx
lea ecx, [ebp + 0x1c]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], ecx
mov esi, dword [ebx]
test esi, esi
js 0x4b3f70
xor ecx, ecx
test eax, eax
cmovle eax, ecx
mov edi, dword [esp + 0x18]
add eax, edi
inc eax
sub esi, eax
cmovb esi, ecx
movzx eax, byte [ebx + 9]
and eax, 0xf
movzx ecx, byte [eax + 0x591875]
mov dword [esp + 0x10], edx
mov edi, esi
shr edi, cl
add ebx, 0xa
mov eax, dword [esp + 0x10]
push ebx
push edi
push eax
call fcn.004b3100
add esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.004b4350
jmp 0x4b3eb4
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x30]
push eax
call fcn.004b3fb0
jmp 0x4b3ec9
test eax, eax
jle 0x4b3e2f
add ecx, eax
lea eax, [ebp + 8]
mov eax, dword [eax]
lea edx, [esp + 0x28]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x3c], edx
lea edx, [ebp + 0x14]
mov dword [esp + 0x40], edx
lea edx, [ebp + 0x1c]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x48], edx
mov esi, dword [ebx]
test esi, esi
js 0x4b3f70
xor edx, edx
sub esi, ecx
cmovb esi, edx
movzx ecx, byte [ebx + 9]
and ecx, 0xf
movzx ecx, byte [ecx + 0x591875]
mov edi, esi
shr edi, cl
add ebx, 0xa
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
push ebx
push edi
push eax
call fcn.004b3100
add esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.004b40f0
mov dword [esp + 8], eax
sub esi, edi
mov eax, dword [esp + 8]
push ebx
push esi
push eax
call fcn.004b3100
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
neg edx
cmp eax, edx
mov ecx, edx
cmovl ecx, eax
test eax, eax
cmovs ecx, edx
test edi, edi
cmovne ecx, edx
lea eax, [esp + 0x28]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ecx
lea eax, [ebp + 8]
mov eax, dword [eax]
lea edx, [ebp + 0x14]
mov dword [esp + 0x3c], edx
lea edx, [ebp + 0x1c]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x44], edx
mov esi, dword [ebx]
test esi, esi
js 0x4b3f70
mov edx, dword [esp + 0x18]
add ecx, edx
add ecx, 2
xor edx, edx
sub esi, ecx
cmovb esi, edx
movzx ecx, byte [ebx + 9]
and ecx, 0xf
movzx ecx, byte [ecx + 0x591875]
mov edi, esi
shr edi, cl
add ebx, 0xa
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
push ebx
push edi
push eax
call fcn.004b3100
add esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.004b4470
jmp 0x4b3eb4
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.004a8080
add esp, 0x14
call fcn.0049aa70
int3