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

Disassembly:
sub esp, 0x24
push ebp
mov ebp, dword [esp + 0x2c]
push esi
test ebp, ebp
je 0x4b5913
cmp dword [ebp + 0x58], 0
je 0x4b5913
mov esi, dword [ebp + 0x54]
test esi, esi
je 0x4b5913
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4b52c0
test byte [eax + 4], 1
je 0x4b52c0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x58]
mov eax, dword [eax + 0x64]
test ecx, ecx
je 0x4b52ad
push ecx
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x58], 0
and dword [eax + 4], 0xfffffffe
jmp 0x4b52c7
mov dword [esi + 0x58], 0
mov dword [esi + 0xc], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x18], xmm0
push ebx
movups xmmword [esi + 0x28], xmm0
push edi
movups xmmword [esi + 0x6c], xmm0
mov dword [esi + 0x7c], 0
mov ecx, dword [esi + 4]
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x54], 0
mov byte [esi + 0x5e], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
test dword [ecx + 8], 0x10000
jne 0x4b534d
mov dword [esi + 0x98], 0
jmp 0x4b5382
mov eax, dword [esi + 0x9c]
test byte [eax + 4], 2
je 0x4b5382
mov edi, dword [esi + 0x98]
mov eax, dword [ecx + 0x64]
mov ecx, dword [edi]
test ecx, ecx
je 0x4b5372
push ecx
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov dword [edi], 0
mov eax, dword [esi + 0x9c]
and dword [eax + 4], 0xfffffffd
mov dword [esi + 0x48], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov edi, dword [ebp + 0x60]
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xa0]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x58]
cmp word [eax + 0xc], 0
je 0x4b53e0
cmp word [eax + 0xe], 0
je 0x4b53e0
mov edx, dword [esp + 0x40]
jmp 0x4b53e7
mov edx, dword [esp + 0x40]
or edx, 1
mov ecx, edx
or ecx, 0x801
test edx, 0x400
cmove ecx, edx
test cl, 1
je 0x4b5403
and ecx, 0xfffffffb
or ecx, 0xa
mov ebx, ecx
and ebx, 0xfffffffb
test ecx, 0x400000
cmove ebx, ecx
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
je 0x4b544a
test ebx, 0x8002
jne 0x4b544a
mov eax, dword [ebp + 8]
and eax, 0x2001
cmp eax, 1
jne 0x4b544a
test ebx, 0x800
jne 0x4b549d
mov eax, dword [ebp + 0x80]
cmp dword [eax + 8], 0
jne 0x4b5498
cmp dword [eax], 0
jne 0x4b549d
mov eax, dword [edi + 0xc]
push ebx
push dword [esp + 0x40]
push dword [ebp + 0x58]
mov eax, dword [eax + 0x48]
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4b590b
cmp dword [esi + 0x48], 0x6f75746c
jne 0x4b55f0
lea ecx, [esi + 0x6c]
test ecx, ecx
je 0x4b5714
movsx eax, word [ecx + 2]
movsx ecx, word [ecx]
test eax, eax
jne 0x4b5603
test ecx, ecx
jmp 0x4b5650
cmp dword [eax], 0
jne 0x4b544a
test bl, 0x20
jne 0x4b5543
mov eax, dword [edi]
test dword [eax], 0x400
je 0x4b5543
mov eax, dword [eax + 0x20]
xor ecx, ecx
test eax, eax
je 0x4b54ca
push str.font_format
push edi
call eax
add esp, 8
mov ecx, eax
push str.Type_1
push ecx
call fcn.005ac290
add esp, 8
test eax, eax
je 0x4b54e6
cmp dword [edi + 0x1c], 1
jne 0x4b54e6
mov cl, 1
jmp 0x4b54e8
xor cl, cl
mov eax, ebx
and eax, 0xf0000
cmp eax, 0x10000
jne 0x4b5504
mov eax, dword [edi]
test dword [eax], 0x800
jne 0x4b5504
test cl, cl
je 0x4b5543
test byte [ebp + 8], 8
je 0x4b544a
cmp dword [ebp + 0x304], 0
je 0x4b544a
cmp word [ebp + 0x11e], 0
jne 0x4b544a
cmp dword [ebp + 0x2b0], 0
jne 0x4b544a
cmp dword [ebp + 0x2b8], 0
jne 0x4b544a
test ebx, 0x1000000
jne 0x4b5580
test dword [ebp + 8], 0x10000
je 0x4b5580
mov ecx, dword [edi + 0xc]
mov eax, ebx
or eax, 0x800000
push eax
push dword [esp + 0x40]
mov eax, dword [ecx + 0x48]
push dword [ebp + 0x58]
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4b5580
cmp dword [esi + 0x48], 0x53564720
je 0x4b55f0
test byte [ebp + 8], 2
je 0x4b55b7
test bl, 8
jne 0x4b55b7
mov ecx, dword [edi + 0xc]
mov eax, ebx
or eax, 0x4000
push eax
push dword [esp + 0x40]
mov eax, dword [ecx + 0x48]
push dword [ebp + 0x58]
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4b55b7
cmp dword [esi + 0x48], 0x62697473
je 0x4b55f0
mov ebx, dword [ebp + 0x80]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x14]
mov edi, dword [ebx + 0x18]
push dword [esp + 0x40]
mov dword [ebx + 0x18], 0
mov eax, dword [ecx]
push dword [ebp + 0x58]
push esi
mov eax, dword [eax + 0x14]
push ecx
mov eax, dword [eax + 0xc]
call eax
mov dword [ebx + 0x18], edi
add esp, 0x14
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
test bl, 0x10
je 0x4b5721
mov eax, dword [esi + 0x34]
xor ecx, ecx
jmp 0x4b5726
jle 0x4b5714
test ecx, ecx
jle 0x4b5714
mov ecx, dword [esi + 0x78]
or edi, 0xffffffff
xor edx, edx
nop dword [eax]
movsx eax, word [ecx]
cmp eax, edi
jle 0x4b5714
movsx edi, word [esi + 0x6e]
cmp eax, edi
jge 0x4b5714
mov ebp, dword [esp + 0x38]
mov edi, eax
movsx eax, word [esi + 0x6c]
inc edx
add ecx, 2
cmp edx, eax
jl 0x4b5620
movsx eax, word [esi + 0x6e]
dec eax
cmp edi, eax
jne 0x4b5714
xor eax, eax
mov dword [esp + 0x10], eax
test bl, 2
jne 0x4b55f0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x24], eax
and eax, 0xffffffc0
mov dword [esi + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x2c], ecx
and ecx, 0xffffffc0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x20], ecx
mov dword [esp + 0x30], ecx
lea ecx, [edx + 0x3f]
mov dword [esp + 0x38], eax
and ecx, 0xffffffc0
and eax, 0xffffffc0
mov dword [esi + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esi + 0x30], eax
mov eax, ebx
shr eax, 4
test al, 1
je 0x4b56d7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
add eax, 0x3f
add ecx, eax
mov eax, dword [esi + 0x18]
add eax, 0x3f
and ecx, 0xffffffc0
add eax, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
and eax, 0xffffffc0
sub eax, dword [esp + 0x28]
jmp 0x4b56f1
mov eax, dword [esi + 0x18]
sub edx, dword [esp + 0x18]
add eax, 0x3f
add eax, dword [esp + 0x2c]
and edx, 0xffffffc0
and eax, 0xffffffc0
sub ecx, edx
sub eax, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x28]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x34]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esi + 0x34], eax
jmp 0x4b55f0
pop edi
pop ebx
pop esi
mov eax, 0x14
pop ebp
add esp, 0x24
ret
mov ecx, dword [esi + 0x28]
xor eax, eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
test ebx, 0x2000
jne 0x4b5760
test byte [ebp + 8], 1
je 0x4b5760
mov edi, dword [ebp + 0x58]
push 0x40
push dword [edi + 0x10]
push dword [esi + 0x38]
call fcn.004b5f40
push 0x40
mov dword [esi + 0x38], eax
push dword [edi + 0x14]
push dword [esi + 0x3c]
call fcn.004b5f40
add esp, 0x18
mov dword [esi + 0x3c], eax
test ebx, 0x800
jne 0x4b5882
mov ebp, dword [ebp + 0x80]
mov dword [esp + 0x2c], ebp
cmp dword [ebp + 0x18], 0
je 0x4b5882
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x9c]
test edx, edx
je 0x4b579b
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0x48]
je 0x4b57c7
mov eax, dword [ecx + 0x94]
xor edx, edx
mov edi, dword [esi + 0x48]
test eax, eax
je 0x4b57c3
nop word [eax + eax]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x10], edi
je 0x4b57c1
mov eax, dword [eax + 4]
test eax, eax
jne 0x4b57b0
jmp 0x4b57c3
mov edx, ecx
test edx, edx
je 0x4b57e2
mov ecx, dword [edx + 0xc]
lea eax, [ebp + 0x10]
push eax
push ebp
push esi
mov eax, dword [ecx + 0x2c]
push edx
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4b5875
cmp dword [esi + 0x48], 0x6f75746c
jne 0x4b5875
test byte [ebp + 0x18], 1
je 0x4b5825
lea eax, [esi + 0x6c]
test eax, eax
je 0x4b5825
mov edi, dword [eax + 4]
test edi, edi
je 0x4b5825
movsx eax, word [eax + 2]
lea eax, [edi + eax*8]
cmp edi, eax
jae 0x4b5825
mov ebx, eax
push ebp
push edi
call fcn.004b8dd0
add edi, 8
add esp, 8
cmp edi, ebx
jb 0x4b5810
mov ebx, dword [esp + 0x14]
test byte [ebp + 0x18], 2
je 0x4b5875
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
lea eax, [esi + 0x6c]
mov dword [esp + 0x30], ecx
test eax, eax
je 0x4b5875
mov edx, dword [eax + 4]
xor ebx, ebx
xor edi, edi
cmp bx, word [eax + 2]
mov ebx, dword [esp + 0x14]
jge 0x4b5875
mov ebp, dword [esp + 0x38]
add dword [edx], ecx
lea edx, [edx + 8]
add dword [edx - 4], ebp
inc edi
movsx eax, word [esi + 0x6e]
movzx ecx, di
cmp ecx, eax
mov ecx, dword [esp + 0x30]
jl 0x4b5855
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
lea eax, [esi + 0x40]
push ebp
push eax
call fcn.004b8dd0
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x9c]
mov dword [eax + 0x28], ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b590b
test bl, 1
jne 0x4b590b
mov ecx, dword [esi + 0x48]
cmp ecx, 0x62697473
je 0x4b590b
cmp ecx, 0x636f6d70
je 0x4b590b
mov ecx, ebx
sar ecx, 0x10
and ecx, 0xf
jne 0x4b58ca
test ebx, 0x1000
mov eax, 2
cmovne ecx, eax
test bl, 4
je 0x4b58fb
mov eax, dword [esi + 4]
test eax, eax
je 0x4b58ee
mov eax, dword [eax + 0x60]
push ecx
push esi
push dword [eax + 4]
call fcn.004b7720
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x24
ret
pop edi
pop ebx
pop esi
mov eax, 6
pop ebp
add esp, 0x24
ret
push 0
push ecx
push esi
call fcn.004b9c90
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x24
ret
pop esi
mov eax, 0x23
pop ebp
add esp, 0x24
ret