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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [0x5d13e4]
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 0x3dcc]
cmp eax, dword [edi + 0x3dc8]
je 0x42a6c5
call fcn.00421a70
mov eax, dword [edi + 0x3dd0]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x3dc8]
push 4
push edi
mov dword [ebp - 0xc], eax
mov dword [edi + 0x3dd0], eax
mov dword [edi + 0xa8], 0
call fcn.00420140
xor ecx, ecx
add esp, 8
mov dword [ebp - 4], ecx
cmp dword [edi + 0x479c], ecx
je 0x42a7d1
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x47a4]
mov ebx, 2
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x10], eax
lea esi, [eax + 0x64]
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x42a743
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.004318c0
mov dword [esi], 0
add esi, 0xc
sub ebx, 1
jne 0x42a724
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x30], ebx
je 0x42a7be
push str.Background
push ebx
push esi
call fcn.004236d0
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x42a7be
cmp ecx, 1
jne 0x42a783
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], ebx
jne 0x42a783
cmp dword [eax + 0x20], ebx
je 0x42a7be
mov ecx, dword [esi + 0x68]
lea ebx, [esi + 0x64]
mov esi, dword [ebx]
cmp esi, ecx
jne 0x42a7b1
inc esi
test ecx, ecx
je 0x42a79f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x42a7a4
mov eax, 8
cmp eax, esi
mov ecx, ebx
cmovg esi, eax
push esi
call fcn.004318c0
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], edx
inc dword [ebx]
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [edi + 0x479c]
jne 0x42a710
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x42a7de
call fcn.0042ace0
mov eax, dword [edi + 0x4900]
test eax, eax
je 0x42a802
test dword [eax + 8], 0x2000
jne 0x42a802
mov ebx, dword [eax + 0x2fc]
mov edx, dword [edi + 0x4908]
mov dword [ebp - 0x14], ebx
jmp 0x42a815
xor ebx, ebx
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x42a813
mov edx, dword [edi + 0x4908]
jmp 0x42a815
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
cmp dword [edi + 0x3de0], esi
je 0x42a87a
nop word [eax + eax]
mov eax, dword [edi + 0x3de8]
mov eax, dword [eax + esi*4]
cmp byte [eax + 0xa6], 0
je 0x42a871
cmp byte [eax + 0xad], 0
jne 0x42a871
mov ecx, dword [eax + 8]
test ecx, 0x1000000
jne 0x42a871
cmp eax, ebx
je 0x42a871
cmp eax, edx
je 0x42a871
shr ecx, 0x19
and ecx, 1
push ecx
push eax
call fcn.0041cd90
mov edx, dword [ebp - 4]
add esp, 8
inc esi
cmp esi, dword [edi + 0x3de0]
jne 0x42a830
xor esi, esi
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x14]
test ecx, ecx
je 0x42a8ad
cmp byte [ecx + 0xa6], 0
je 0x42a8ad
cmp byte [ecx + 0xad], 0
jne 0x42a8ad
mov eax, dword [ecx + 8]
shr eax, 0x19
and eax, 1
push eax
push ecx
call fcn.0041cd90
add esp, 8
inc esi
cmp esi, 2
jl 0x42a880
cmp byte [edi + 0x60], 0
je 0x42a8fb
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x42a8fb
mov eax, dword [edi + 0x492c]
cmp eax, 0xffffffff
je 0x42a8fb
movss xmm0, dword [edi + 0x3850]
push 0x30000000
push 0xff000000
push 0xffffffffffffffff
push eax
push ecx
movss dword [esp], xmm0
push dword [edi + 0xdbc]
push dword [edi + 0xdb8]
call fcn.0042b0d0
add esp, 0x1c
xor ecx, ecx
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], 0
mov dword [ebp - 8], ecx
cmp dword [edi + 0x479c], ecx
jle 0x42aacd
mov eax, dword [edi + 0x47a4]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x68]
add edx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
cmp edx, eax
jle 0x42a96c
test eax, eax
je 0x42a951
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, eax
sar ecx, 1
add ecx, dword [ebx + 0x68]
jmp 0x42a956
mov ecx, 8
cmp ecx, edx
mov eax, edx
cmovg eax, ecx
lea ecx, [ebx + 0x64]
push eax
call fcn.004318c0
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x64], edx
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x42a9b3
shl eax, 2
push eax
mov eax, dword [ebx + 0x6c]
push dword [ebx + 0x78]
lea eax, [eax + ecx*4]
push eax
call fcn.004e1300
mov ecx, dword [ebx + 0x74]
add esp, 0xc
test ecx, ecx
jns 0x42a9ac
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x70]
call fcn.004318c0
mov dword [ebx + 0x70], 0
cmp dword [ebx + 0x34], 0
je 0x42aa22
push str.Foreground
push 1
push ebx
call fcn.004236d0
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x42aa22
cmp ecx, 1
jne 0x42a9e6
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x42a9e6
cmp dword [eax + 0x20], 0
je 0x42aa22
mov esi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
cmp esi, ecx
jne 0x42aa13
inc esi
test ecx, ecx
je 0x42aa00
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x42aa05
mov eax, 8
cmp eax, esi
lea ecx, [ebx + 0x64]
cmovg esi, eax
push esi
call fcn.004318c0
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], edx
inc dword [ebx + 0x64]
mov edx, dword [0x5d13e4]
mov byte [ebx + 0x38], 1
cmp dword [ebx + 0x64], 0
jle 0x42aa37
mov eax, dword [ebx + 0x6c]
jmp 0x42aa39
xor eax, eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x54], eax
mov ecx, dword [edx + 0x5c]
mov eax, dword [edx + 0x58]
xor edx, edx
mov dword [ebx + 0x60], ecx
xor ecx, ecx
mov dword [ebx + 0x5c], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebx + 0x64], ecx
jle 0x42aaa8
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.00449310
mov edx, dword [esi + 0x18]
add edx, dword [ebx + 0x44]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x44], edx
inc ecx
mov eax, dword [esi + 0xc]
add dword [ebx + 0x40], eax
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebx + 0x64]
jl 0x42aa80
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
add dword [edi + 0xa0], edx
mov eax, dword [ebx + 0x40]
add dword [edi + 0xa4], eax
cmp ecx, dword [edi + 0x479c]
jl 0x42a920
xor esi, esi
cmp dword [edi + 0x5a24], esi
jle 0x42ab04
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0x5a2c]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x42aaf8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a24]
jl 0x42aae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret