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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
movzx eax, byte [esp + 0x7c]
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x6c]
mov ebp, dword [edx]
mov eax, ebp
or eax, 1
bsr eax, eax
movzx edi, word [eax + eax + 0x591990]
xor eax, eax
cmp dword [edi*4 + 0x590d78], ebp
mov dword [esp + 0x38], ebp
seta al
sub edi, eax
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
movzx ecx, ah
mov dword [esp + 0x30], ecx
js 0x4b2f7a
lea eax, [esp + 0x74]
mov dword [esp + 0x48], ecx
cmp ecx, 1
mov ecx, edi
sbb ecx, 0xffffffff
mov dword [esp + 0x10], ecx
mov esi, dword [edx + 4]
lea edx, [esi + edi]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
cmp cl, 1
je 0x4b2c25
movzx ecx, cl
test ecx, ecx
jne 0x4b2bef
test ebx, ebx
mov ecx, 0x10
cmovg ecx, ebx
cmp edx, 0xfffffffd
jl 0x4b2c25
cmp edx, ecx
jg 0x4b2c25
mov dword [esp + 0x4c], edx
test esi, esi
mov eax, dword [esp + 0x40]
js 0x4b2d35
add esi, dword [esp + 0x10]
sub ebx, edx
mov dword [esp + 0xc], ebx
test eax, 0x100000
mov ebp, dword [esp + 0x70]
jne 0x4b2dff
lea eax, [esp + 0x68]
lea edx, [esp + 0x74]
jmp 0x4b2e30
lea eax, [esi + edi]
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
test eax, 0x100000
jne 0x4b2c49
xor esi, esi
cmp edi, 1
mov ecx, dword [esp + 0x3c]
movzx ecx, cl
cmove ecx, esi
jmp 0x4b2c5a
sub ebx, edi
xor esi, esi
test ebx, ebx
cmovg esi, ebx
add dword [esp + 0x10], esi
mov ecx, dword [esp + 0x3c]
test eax, 0x10000
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], cl
mov dword [esp + 0x24], esi
sete al
shl al, 5
or al, 0x45
mov byte [esp + 0x28], al
mov edi, dword [esp + 0x44]
mov dword [esp + 0x2c], edi
mov ebx, dword [esp + 0x70]
mov esi, dword [ebx]
test esi, esi
jle 0x4b2de2
mov eax, 1
sub eax, edx
test edx, edx
cmovle edi, eax
xor eax, eax
cmp edi, 0x3e8
setge al
add eax, 3
cmp edi, 0x64
mov edi, ecx
mov ecx, 2
cmovge ecx, eax
mov edx, dword [esp + 0x10]
add edx, ecx
mov eax, edi
cmp al, 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, [esp + 0x68]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov edi, esi
shr edi, cl
add ebx, 0xa
mov eax, dword [esp + 8]
push ebx
push edi
push eax
call fcn.004b3100
add esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push eax
call fcn.004b31d0
mov dword [esp], eax
sub esi, edi
mov eax, dword [esp]
push ebx
jmp 0x4b2f68
test edx, edx
mov ebp, dword [esp + 0x70]
jle 0x4b2ec1
shl eax, 0xb
sar eax, 0x1f
sub ebx, edi
and ebx, eax
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x68]
mov eax, dword [eax]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], ecx
mov esi, dword [ebp]
test esi, esi
js 0x4b2f7a
xor ecx, ecx
test ebx, ebx
cmovle ebx, ecx
mov edx, dword [esp + 0x10]
add edx, ebx
inc edx
sub esi, edx
cmovb esi, ecx
movzx ecx, byte [ebp + 9]
and ecx, 0xf
movzx ecx, byte [ecx + 0x591875]
mov edi, esi
shr edi, cl
add ebp, 0xa
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
push ebp
push edi
push eax
call fcn.004b3100
add esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push eax
call fcn.004b36e0
jmp 0x4b2f5f
lea eax, [esp + 0x68]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x14]
push eax
call fcn.004b31d0
jmp 0x4b2f72
test ebx, ebx
jg 0x4b2e22
movzx eax, al
cmp eax, 2
je 0x4b2e22
mov dword [esp + 0xc], 1
mov ebx, 1
lea eax, [esp + 0x68]
lea edx, [esp + 0x74]
jmp 0x4b2e2e
test ebx, ebx
lea eax, [esp + 0x68]
lea edx, [esp + 0x74]
jle 0x4b2e30
add esi, ebx
mov eax, dword [eax]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov edi, dword [ebp]
test edi, edi
js 0x4b2f7a
xor ecx, ecx
sub edi, esi
cmovb edi, ecx
movzx ecx, byte [ebp + 9]
and ecx, 0xf
movzx ecx, byte [ecx + 0x591875]
mov esi, edi
shr esi, cl
add ebp, 0xa
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
push ebp
push esi
push eax
call fcn.004b3100
add esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push eax
call fcn.004b34b0
mov dword [esp], eax
sub edi, esi
mov eax, dword [esp]
push ebp
push edi
jmp 0x4b2f69
neg edx
cmp ebx, edx
mov eax, edx
cmovl edx, ebx
test ebx, ebx
cmovs edx, eax
test edi, edi
cmovne edx, eax
mov dword [esp + 0xc], edx
lea eax, [esp + 0x68]
mov eax, dword [eax]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], ecx
mov esi, dword [ebp]
test esi, esi
js 0x4b2f7a
mov ecx, dword [esp + 0x10]
add ecx, edx
add ecx, 2
xor edx, edx
sub esi, ecx
cmovb esi, edx
movzx ecx, byte [ebp + 9]
and ecx, 0xf
movzx ecx, byte [ecx + 0x591875]
mov edi, esi
shr edi, cl
add ebp, 0xa
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
push ebp
push edi
push eax
call fcn.004b3100
add esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push eax
call fcn.004b37f0
mov dword [esp], eax
sub esi, edi
mov eax, dword [esp]
push ebp
push esi
push eax
call fcn.004b3100
add esp, 0xc
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
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