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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1014a440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x101864e8]
push esi
push edi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebx + 0x3f0c]
cmp eax, dword [ebx + 0x3f08]
je 0x1004b4af
call fcn.1004b100
mov eax, dword [ebx + 0x3f08]
cmp dword [ebx + 0x3f10], eax
je 0x1004b92e
mov dword [ebx + 0x3f10], eax
mov dword [ebx + 0xa8], 0
mov eax, dword [ebx + 0x5df4]
mov esi, dword [ebx + 0x5dfc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1004b4fe
cmp dword [esi + 4], 4
jne 0x1004b4f7
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1004b4e7
call fcn.1004ab20
mov ecx, dword [ebx + 0x4a34]
mov eax, dword [ebx + 0x4a2c]
mov dword [ebp - 0x10], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 8], eax
cmp ecx, eax
je 0x1004b65a
mov esi, dword [ecx]
mov ebx, dword [0x101864e8]
lea edi, [esi + 0x4c]
lea eax, [esi + 0x7c]
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], eax
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1004b553
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1005b9c0
mov dword [edi], 0
mov edi, dword [esi + 0x78]
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1004b57b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1005b9c0
mov dword [edi], 0
mov byte [esi + 0x3c], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], esi
cmp dword [esi + 0x34], 0
je 0x1004b645
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10048a00
mov edi, dword [esi + 0x74]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x1004b645
cmp eax, 1
jne 0x1004b5fb
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x1004b5fb
cmp dword [eax + 0x20], 0
je 0x1004b645
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, ecx
jne 0x1004b62c
inc edx
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x1004b61a
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, ecx
jmp 0x1004b61f
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.1005b9c0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
inc dword [esi + 0x40]
mov eax, dword [ebx + 0x18]
add dword [esi + 0x48], eax
mov eax, dword [ebx + 0xc]
add dword [esi + 0x44], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 8]
jne 0x1004b520
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x4c00]
test eax, eax
je 0x1004b67e
test dword [eax + 0xc], 0x2000
jne 0x1004b67e
mov edi, dword [eax + 0x30c]
mov ebx, dword [ebx + 0x4c08]
mov dword [ebp - 0x1c], edi
jmp 0x1004b691
xor edi, edi
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x1004b68f
mov ebx, dword [ebx + 0x4c08]
jmp 0x1004b691
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov esi, dword [eax + 0x3f48]
mov eax, dword [eax + 0x3f40]
lea eax, [esi + eax*4]
mov dword [ebp - 8], eax
cmp esi, eax
je 0x1004b6ec
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xae], 0
je 0x1004b6e5
cmp byte [ecx + 0xb5], 0
jne 0x1004b6e5
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x1004b6e5
cmp ecx, edi
je 0x1004b6e5
cmp ecx, ebx
je 0x1004b6e5
shr edx, 0x19
and edx, 1
call fcn.1004a6e0
mov eax, dword [ebp - 8]
add esi, 4
cmp esi, eax
jne 0x1004b6b0
xor esi, esi
nop
mov ecx, dword [ebp + esi*4 - 0x1c]
test ecx, ecx
je 0x1004b718
cmp byte [ecx + 0xae], 0
je 0x1004b718
cmp byte [ecx + 0xb5], 0
jne 0x1004b718
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.1004a6e0
inc esi
cmp esi, 2
jl 0x1004b6f0
mov edx, dword [ebp - 0xc]
cmp byte [edx + 0x44], 0
je 0x1004b754
mov ecx, dword [edx + 0x4d84]
cmp ecx, 0xffffffff
je 0x1004b754
push dword [edx + 0xe04]
movss xmm0, dword [edx + 0x397c]
push dword [edx + 0xe00]
sub esp, 8
call fcn.10047420
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov dword [edx + 0xa4], 0
mov dword [edx + 0xa0], 0
mov ecx, dword [edx + 0x4a34]
mov eax, dword [edx + 0x4a2c]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
cmp ecx, eax
je 0x1004b8fe
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
mov ebx, dword [eax + 0x74]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [ebx + 4]
add esi, ecx
mov dword [ebp - 8], ecx
cmp esi, edi
jle 0x1004b7c8
test edi, edi
je 0x1004b7b1
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x1004b7b6
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.1005b9c0
mov ecx, dword [ebp - 8]
mov dword [ebx], esi
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 0x78]
mov eax, dword [esi]
test eax, eax
je 0x1004b814
shl eax, 2
push eax
mov eax, dword [ebx + 0x74]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ecx*4]
push eax
call fcn.100cd150
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1004b80e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1005b9c0
mov dword [esi], 0
cmp dword [ebx + 0x38], 0
je 0x1004b894
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.10048a00
mov esi, dword [ebx + 0x74]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x1004b894
cmp eax, 1
jne 0x1004b84d
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x1004b84d
cmp dword [eax + 0x20], 0
je 0x1004b894
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
cmp ebx, ecx
jne 0x1004b878
inc ebx
test ecx, ecx
je 0x1004b866
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1004b86b
mov eax, 8
cmp eax, ebx
mov ecx, esi
cmovg ebx, eax
push ebx
call fcn.1005b9c0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov ebx, dword [ebp - 0x10]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [ebx + 0x40]
mov eax, dword [edi + 0x18]
add dword [ebx + 0x48], eax
mov eax, dword [edi + 0xc]
add dword [ebx + 0x44], eax
mov edi, dword [ebx + 0x54]
mov eax, dword [ebx + 0x4c]
lea eax, [edi + eax*4]
mov dword [ebp - 8], eax
cmp edi, eax
je 0x1004b8d7
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1004b8d0
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x1004b8cd
cmp dword [eax + edx - 8], 0
jne 0x1004b8cd
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x1004b8b2
mov eax, dword [ebp - 8]
add edi, 4
cmp edi, eax
jne 0x1004b8a4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebp - 0x14]
add ecx, 4
add dword [edx + 0xa0], eax
mov eax, dword [ebx + 0x44]
add dword [edx + 0xa4], eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x18]
jne 0x1004b785
mov eax, dword [edx + 0x5df4]
mov esi, dword [edx + 0x5dfc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1004b92e
cmp dword [esi + 4], 5
jne 0x1004b927
mov eax, dword [esi + 0xc]
push esi
push edx
call eax
mov edx, dword [ebp - 0xc]
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1004b914
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cacb6
mov esp, ebp
pop ebp
ret