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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x10104934]
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx + 0x3dcc]
cmp eax, dword [ebx + 0x3dc8]
je 0x1004c10f
call fcn.1004be00
mov eax, dword [ebx + 0x3dd0]
mov edx, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
mov eax, dword [ebx + 0x3dc8]
mov dword [ebp - 8], eax
mov dword [ebx + 0x3dd0], eax
mov dword [ebx + 0xa8], 0
call fcn.10048660
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4788], ecx
je 0x1004c1fa
nop
mov eax, dword [ebx + 0x4790]
mov edi, 2
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc], eax
lea esi, [eax + 0x64]
push 0
mov ecx, esi
call fcn.1005a860
add esi, 0xc
sub edi, 1
jne 0x1004c164
mov edi, dword [ebp - 0xc]
cmp dword [edi + 0x30], 0
je 0x1004c1e7
push str.Background
xor edx, edx
mov ecx, edi
call fcn.100486b0
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1004c1e7
cmp ecx, 1
jne 0x1004c1ac
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x1004c1ac
cmp dword [eax + 0x20], 0
je 0x1004c1e7
mov ecx, dword [edi + 0x68]
lea esi, [edi + 0x64]
mov edi, dword [esi]
cmp edi, ecx
jne 0x1004c1da
inc edi
test ecx, ecx
je 0x1004c1c8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1004c1cd
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.1005a730
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebx + 0x4788]
jne 0x1004c150
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x1004c207
call fcn.1004ba10
mov eax, dword [ebx + 0x48ec]
test eax, eax
je 0x1004c22b
test dword [eax + 8], 0x2000
jne 0x1004c22b
mov edi, dword [eax + 0x2e4]
mov eax, dword [ebx + 0x48f4]
mov dword [ebp - 0x10], edi
jmp 0x1004c23e
xor edi, edi
mov dword [ebp - 0x10], edi
test eax, eax
je 0x1004c23c
mov eax, dword [ebx + 0x48f4]
jmp 0x1004c23e
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x3de0], esi
je 0x1004c293
nop
mov eax, dword [ebx + 0x3de8]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0x8e], 0
je 0x1004c28a
cmp byte [ecx + 0x95], 0
jne 0x1004c28a
mov edx, dword [ecx + 8]
test edx, 0x1000000
jne 0x1004c28a
cmp ecx, edi
je 0x1004c28a
cmp ecx, dword [ebp - 0x14]
je 0x1004c28a
shr edx, 0x19
and edx, 1
call fcn.1004b580
inc esi
cmp esi, dword [ebx + 0x3de0]
jne 0x1004c250
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x10]
test ecx, ecx
je 0x1004c2bd
cmp byte [ecx + 0x8e], 0
je 0x1004c2bd
cmp byte [ecx + 0x95], 0
jne 0x1004c2bd
mov edx, dword [ecx + 8]
shr edx, 0x19
and edx, 1
call fcn.1004b580
inc esi
cmp esi, 2
jl 0x1004c295
cmp byte [ebx + 0x60], 0
je 0x1004c2fb
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x1004c2fb
mov ecx, dword [ebx + 0x4918]
cmp ecx, 0xffffffff
je 0x1004c2fb
push dword [ebx + 0xdbc]
movss xmm0, dword [ebx + 0x3850]
push dword [ebx + 0xdb8]
sub esp, 8
call fcn.10047580
add esp, 0x10
xor ecx, ecx
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov dword [ebp - 0x18], ecx
cmp dword [ebx + 0x4788], ecx
jle 0x1004c4a9
mov eax, dword [ebx + 0x4790]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x70]
add eax, ecx
mov dword [ebp - 0xc], ecx
push eax
lea ecx, [edi + 0x64]
call fcn.1005a860
mov eax, dword [edi + 0x70]
test eax, eax
je 0x1004c367
mov ecx, dword [ebp - 0xc]
shl eax, 2
push eax
mov eax, dword [edi + 0x6c]
push dword [edi + 0x78]
lea eax, [eax + ecx*4]
push eax
call fcn.10092030
add esp, 0xc
lea ecx, [edi + 0x70]
push 0
call fcn.1005a860
cmp dword [edi + 0x34], 0
je 0x1004c3e0
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.100486b0
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1004c3e0
cmp ecx, 1
jne 0x1004c39e
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x1004c39e
cmp dword [eax + 0x20], 0
je 0x1004c3e0
mov edx, dword [edi + 0x64]
mov ecx, dword [edi + 0x68]
cmp edx, ecx
jne 0x1004c3d1
inc edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x1004c3be
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
sar eax, 1
add eax, ecx
jmp 0x1004c3c3
mov eax, 8
cmp eax, edx
lea ecx, [edi + 0x64]
cmovg edx, eax
push edx
call fcn.1005a730
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x6c]
mov edx, dword [ebp - 8]
mov dword [eax + ecx*4], edx
inc dword [edi + 0x64]
mov edx, dword [0x10104934]
mov byte [edi + 0x38], 1
cmp dword [edi + 0x64], 0
jle 0x1004c3f5
mov eax, dword [edi + 0x6c]
jmp 0x1004c3f7
xor eax, eax
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x64]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], ecx
mov eax, dword [edx + 0x58]
mov ecx, dword [edx + 0x5c]
mov dword [edi + 0x5c], eax
xor eax, eax
mov dword [edi + 0x60], ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [edi + 0x64], eax
jle 0x1004c487
nop
mov eax, dword [edi + 0x6c]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
test eax, eax
je 0x1004c463
mov ebx, dword [edx + 8]
lea ecx, [eax + eax*4]
cmp dword [ebx + ecx*8 - 0xc], 0
jne 0x1004c463
cmp dword [ebx + ecx*8 - 8], 0
jne 0x1004c463
dec eax
mov dword [edx], eax
mov eax, dword [edi + 0x44]
add eax, dword [edx + 0x18]
mov ecx, dword [ebp - 8]
mov dword [edi + 0x44], eax
inc ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0xc]
add dword [edi + 0x40], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [edi + 0x64]
jl 0x1004c440
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
add dword [ebx + 0xa0], eax
inc ecx
mov eax, dword [edi + 0x40]
add dword [ebx + 0xa4], eax
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebx + 0x4788]
jl 0x1004c320
xor esi, esi
cmp dword [ebx + 0x5a0c], esi
jle 0x1004c4e4
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x5a14]
add eax, edi
cmp dword [eax + 4], 5
jne 0x1004c4d8
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x5a0c]
jl 0x1004c4c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100902f6
mov esp, ebp
pop ebp
ret