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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x67dc18]
push esi
push edi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebx + 0x4040]
cmp dword [ebx + 0x4044], eax
je 0x4121eb
call fcn.00411900
mov eax, dword [ebx + 0x4040]
cmp dword [ebx + 0x404c], eax
je 0x412667
mov dword [ebx + 0x404c], eax
mov dword [ebx + 0xa0], 0
mov eax, dword [ebx + 0x5290]
mov esi, dword [ebx + 0x5298]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x412237
nop dword [eax]
cmp dword [esi + 4], 4
jne 0x412230
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x412220
mov ecx, dword [ebx + 0x4bd0]
xor esi, esi
mov edx, dword [ebx + 0x4bc8]
xor ebx, ebx
shl edx, 2
mov dword [ebp - 8], ecx
lea eax, [edx + ecx]
shr edx, 2
cmp ecx, eax
cmova edx, esi
mov dword [ebp - 0x10], edx
test edx, edx
je 0x412347
mov esi, dword [ecx]
mov eax, dword [0x67dc18]
mov dword [ebp - 0x14], eax
push 0
lea edi, [esi + 0x80]
mov dword [esi + 0x30], edi
lea ecx, [edi + 0x10]
lea eax, [esi + 0xc0]
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], eax
call fcn.0042e080
mov ecx, dword [esi + 0xbc]
push 0
call fcn.0042e080
mov eax, dword [esi + 4]
shr eax, 0xc
and al, 1
mov byte [edi], 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [esi + 8]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x20], eax
je 0x4122e0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], 0
jmp 0x4122ef
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x28], eax
mov eax, dword [ecx + 0x3c]
mov dword [edi + 0x2c], eax
mov eax, dword [ecx + 0x40]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], esi
cmp dword [esi + 0x78], 0
je 0x412334
push str.Background
xor edx, edx
mov ecx, esi
call fcn.0040ee80
mov edx, dword [esi + 0xb8]
add esp, 4
mov ecx, edi
push eax
call fcn.00438c10
add esp, 4
mov ecx, dword [ebp - 8]
inc ebx
add ecx, 4
mov dword [ebp - 8], ecx
cmp ebx, dword [ebp - 0x10]
jne 0x412263
call fcn.004113e0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x4df4]
test eax, eax
je 0x41236a
test dword [eax + 0xc], 0x2000
jne 0x41236a
mov ecx, dword [eax + 0x35c]
jmp 0x41236c
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x41237e
mov eax, dword [ebx + 0x4dfc]
jmp 0x412380
xor eax, eax
mov esi, dword [ebx + 0x4094]
xor ecx, ecx
mov ebx, dword [ebx + 0x408c]
xor edi, edi
shl ebx, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
lea eax, [ebx + esi]
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x4123ec
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xf3], 0
je 0x4123e4
cmp byte [ecx + 0xfb], 0
jne 0x4123e4
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x4123e4
cmp ecx, dword [ebp - 8]
je 0x4123e4
cmp ecx, dword [ebp - 0x10]
je 0x4123e4
shr edx, 0x19
and edx, 1
call fcn.00410eb0
inc edi
add esi, 4
cmp edi, ebx
jne 0x4123b0
xor esi, esi
nop
mov ecx, dword [ebp + esi*4 - 0x24]
test ecx, ecx
je 0x412418
cmp byte [ecx + 0xf3], 0
je 0x412418
cmp byte [ecx + 0xfb], 0
jne 0x412418
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.00410eb0
inc esi
cmp esi, 2
jl 0x4123f0
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x4c], 0
je 0x412451
mov ecx, dword [ebx + 0x500c]
cmp ecx, 0xffffffff
je 0x412451
push dword [ebx + 0xb8]
movss xmm0, dword [ebx + 0x3a54]
push dword [ebx + 0xb4]
sub esp, 8
call fcn.0040c800
add esp, 0x10
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0x98], 0
mov ecx, dword [ebx + 0x4bd0]
mov eax, dword [ebx + 0x4bc8]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
cmp ecx, eax
je 0x412635
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
mov eax, dword [ecx + 0xbc]
mov esi, dword [ecx + 0xb8]
mov edi, dword [eax]
mov ebx, dword [esi]
add edi, ebx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], ebx
cmp edi, ecx
jle 0x4124fc
test ecx, ecx
je 0x4124b2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x4124b7
mov eax, 8
cmp eax, edi
mov ebx, edi
cmovg ebx, eax
cmp ebx, ecx
jle 0x4124f9
lea ecx, [ebx*4]
call fcn.0040ed70
mov edx, dword [esi + 8]
mov dword [ebp - 0x18], eax
test edx, edx
je 0x4124f3
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call fcn.004867d0
mov ecx, dword [esi + 8]
add esp, 0xc
call fcn.0040ee10
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov ebx, dword [ebp - 0x10]
mov dword [esi], edi
mov edi, dword [ebp - 8]
mov esi, dword [edi + 0xbc]
mov eax, dword [esi]
test eax, eax
je 0x412580
shl eax, 2
push eax
mov eax, dword [edi + 0xb8]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ebx*4]
push eax
call fcn.004867d0
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x41257a
mov eax, ecx
xor edi, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edi, eax
cmp edi, ecx
jle 0x412577
lea ecx, [edi*4]
call fcn.0040ed70
mov ebx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x412571
mov ecx, dword [esi]
shl ecx, 2
push ecx
push eax
push ebx
call fcn.004867d0
mov ecx, dword [esi + 8]
add esp, 0xc
call fcn.0040ee10
mov dword [esi + 8], ebx
mov dword [esi + 4], edi
mov edi, dword [ebp - 8]
mov dword [esi], 0
cmp dword [edi + 0x7c], 0
je 0x4125af
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.0040ee80
mov edx, dword [edi + 0xb8]
lea ecx, [edi + 0x80]
add esp, 4
push eax
call fcn.00438c10
add esp, 4
mov ebx, dword [edi + 0x90]
xor ecx, ecx
mov esi, dword [edi + 0x98]
xor edi, edi
shl ebx, 2
lea eax, [ebx + esi]
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x412605
mov ecx, dword [esi]
mov eax, dword [ecx]
test eax, eax
jle 0x4125fd
nop dword [eax]
mov edx, dword [ecx + 8]
lea eax, [eax + eax*4]
cmp dword [edx + eax*8 - 0xc], 0
jne 0x4125fd
cmp dword [edx + eax*8 - 8], 0
jne 0x4125fd
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
test eax, eax
jg 0x4125e0
inc edi
add esi, 4
cmp edi, ebx
jne 0x4125d1
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x8c]
add dword [ebx + 0x98], eax
mov eax, dword [ecx + 0x88]
mov ecx, dword [ebp - 0x14]
add dword [ebx + 0x9c], eax
add ecx, 4
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x20]
jne 0x412482
mov eax, dword [ebx + 0x5290]
mov esi, dword [ebx + 0x5298]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x412667
nop dword [eax + eax]
cmp dword [esi + 4], 5
jne 0x412660
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x412650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret