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

Disassembly:
sub esp, 0x24
push ebp
mov ebp, dword [esp + 0x2c]
push esi
test ebp, ebp
je 0x4b67e3
cmp dword [ebp + 0x58], 0
je 0x4b67e3
mov esi, dword [ebp + 0x54]
test esi, esi
je 0x4b67e3
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4b6190
test byte [eax + 4], 1
je 0x4b6190
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x58]
mov eax, dword [eax + 0x64]
test ecx, ecx
je 0x4b617d
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 0x4b6197
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 0x4b621d
mov dword [esi + 0x98], 0
jmp 0x4b6252
mov eax, dword [esi + 0x9c]
test byte [eax + 4], 2
je 0x4b6252
mov edi, dword [esi + 0x98]
mov eax, dword [ecx + 0x64]
mov ecx, dword [edi]
test ecx, ecx
je 0x4b6242
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 0x4b62b0
cmp word [eax + 0xe], 0
je 0x4b62b0
mov edx, dword [esp + 0x40]
jmp 0x4b62b7
mov edx, dword [esp + 0x40]
or edx, 1
mov ecx, edx
or ecx, 0x801
test edx, 0x400
cmove ecx, edx
test cl, 1
je 0x4b62d3
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 0x4b631a
test ebx, 0x8002
jne 0x4b631a
mov eax, dword [ebp + 8]
and eax, 0x2001
cmp eax, 1
jne 0x4b631a
test ebx, 0x800
jne 0x4b636d
mov eax, dword [ebp + 0x80]
cmp dword [eax + 8], 0
jne 0x4b6368
cmp dword [eax], 0
jne 0x4b636d
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 0x4b67db
cmp dword [esi + 0x48], 0x6f75746c
jne 0x4b64c0
lea ecx, [esi + 0x6c]
test ecx, ecx
je 0x4b65e4
movsx eax, word [ecx + 2]
movsx ecx, word [ecx]
test eax, eax
jne 0x4b64d3
test ecx, ecx
jmp 0x4b6520
cmp dword [eax], 0
jne 0x4b631a
test bl, 0x20
jne 0x4b6413
mov eax, dword [edi]
test dword [eax], 0x400
je 0x4b6413
mov eax, dword [eax + 0x20]
xor ecx, ecx
test eax, eax
je 0x4b639a
push str.font_format
push edi
call eax
add esp, 8
mov ecx, eax
push str.Type_1
push ecx
call fcn.005ad220
add esp, 8
test eax, eax
je 0x4b63b6
cmp dword [edi + 0x1c], 1
jne 0x4b63b6
mov cl, 1
jmp 0x4b63b8
xor cl, cl
mov eax, ebx
and eax, 0xf0000
cmp eax, 0x10000
jne 0x4b63d4
mov eax, dword [edi]
test dword [eax], 0x800
jne 0x4b63d4
test cl, cl
je 0x4b6413
test byte [ebp + 8], 8
je 0x4b631a
cmp dword [ebp + 0x304], 0
je 0x4b631a
cmp word [ebp + 0x11e], 0
jne 0x4b631a
cmp dword [ebp + 0x2b0], 0
jne 0x4b631a
cmp dword [ebp + 0x2b8], 0
jne 0x4b631a
test ebx, 0x1000000
jne 0x4b6450
test dword [ebp + 8], 0x10000
je 0x4b6450
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 0x4b6450
cmp dword [esi + 0x48], 0x53564720
je 0x4b64c0
test byte [ebp + 8], 2
je 0x4b6487
test bl, 8
jne 0x4b6487
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 0x4b6487
cmp dword [esi + 0x48], 0x62697473
je 0x4b64c0
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 0x4b65f1
mov eax, dword [esi + 0x34]
xor ecx, ecx
jmp 0x4b65f6
jle 0x4b65e4
test ecx, ecx
jle 0x4b65e4
mov ecx, dword [esi + 0x78]
or edi, 0xffffffff
xor edx, edx
nop dword [eax]
movsx eax, word [ecx]
cmp eax, edi
jle 0x4b65e4
movsx edi, word [esi + 0x6e]
cmp eax, edi
jge 0x4b65e4
mov ebp, dword [esp + 0x38]
mov edi, eax
movsx eax, word [esi + 0x6c]
inc edx
add ecx, 2
cmp edx, eax
jl 0x4b64f0
movsx eax, word [esi + 0x6e]
dec eax
cmp edi, eax
jne 0x4b65e4
xor eax, eax
mov dword [esp + 0x10], eax
test bl, 2
jne 0x4b64c0
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 0x4b65a7
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 0x4b65c1
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 0x4b64c0
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 0x4b6630
test byte [ebp + 8], 1
je 0x4b6630
mov edi, dword [ebp + 0x58]
push 0x40
push dword [edi + 0x10]
push dword [esi + 0x38]
call fcn.004b6e10
push 0x40
mov dword [esi + 0x38], eax
push dword [edi + 0x14]
push dword [esi + 0x3c]
call fcn.004b6e10
add esp, 0x18
mov dword [esi + 0x3c], eax
test ebx, 0x800
jne 0x4b6752
mov ebp, dword [ebp + 0x80]
mov dword [esp + 0x2c], ebp
cmp dword [ebp + 0x18], 0
je 0x4b6752
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x9c]
test edx, edx
je 0x4b666b
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0x48]
je 0x4b6697
mov eax, dword [ecx + 0x94]
xor edx, edx
mov edi, dword [esi + 0x48]
test eax, eax
je 0x4b6693
nop word [eax + eax]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x10], edi
je 0x4b6691
mov eax, dword [eax + 4]
test eax, eax
jne 0x4b6680
jmp 0x4b6693
mov edx, ecx
test edx, edx
je 0x4b66b2
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 0x4b6745
cmp dword [esi + 0x48], 0x6f75746c
jne 0x4b6745
test byte [ebp + 0x18], 1
je 0x4b66f5
lea eax, [esi + 0x6c]
test eax, eax
je 0x4b66f5
mov edi, dword [eax + 4]
test edi, edi
je 0x4b66f5
movsx eax, word [eax + 2]
lea eax, [edi + eax*8]
cmp edi, eax
jae 0x4b66f5
mov ebx, eax
push ebp
push edi
call fcn.004b9ca0
add edi, 8
add esp, 8
cmp edi, ebx
jb 0x4b66e0
mov ebx, dword [esp + 0x14]
test byte [ebp + 0x18], 2
je 0x4b6745
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 0x4b6745
mov edx, dword [eax + 4]
xor ebx, ebx
xor edi, edi
cmp bx, word [eax + 2]
mov ebx, dword [esp + 0x14]
jge 0x4b6745
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 0x4b6725
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
lea eax, [esi + 0x40]
push ebp
push eax
call fcn.004b9ca0
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 0x4b67db
test bl, 1
jne 0x4b67db
mov ecx, dword [esi + 0x48]
cmp ecx, 0x62697473
je 0x4b67db
cmp ecx, 0x636f6d70
je 0x4b67db
mov ecx, ebx
sar ecx, 0x10
and ecx, 0xf
jne 0x4b679a
test ebx, 0x1000
mov eax, 2
cmovne ecx, eax
test bl, 4
je 0x4b67cb
mov eax, dword [esi + 4]
test eax, eax
je 0x4b67be
mov eax, dword [eax + 0x60]
push ecx
push esi
push dword [eax + 4]
call fcn.004b85f0
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.004bab60
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