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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [0x466af0]
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x1234]
cmp eax, dword [edi + 0x1230]
je 0x409bf9
call fcn.004097a0
mov eax, dword [edi + 0x1230]
cmp dword [edi + 0x1238], eax
je 0x409ff7
mov dword [edi + 0x1238], eax
mov dword [edi + 0xa4], 0
mov eax, dword [edi + 0x23d0]
mov esi, dword [edi + 0x23d8]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x409c48
cmp dword [esi + 4], 4
jne 0x409c41
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x409c31
mov ebx, dword [edi + 0x1d94]
mov eax, dword [edi + 0x1d8c]
lea eax, [ebx + eax*4]
mov dword [esp + 0x1c], eax
cmp ebx, eax
je 0x409d53
mov esi, dword [ebx]
mov eax, dword [0x466af0]
lea ecx, [esi + 0x50]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x80]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x409ca4
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x14]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x50]
call fcn.0041c040
lea ecx, [esi + 0x50]
mov dword [ecx], 0
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x409cd6
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, dword [esp + 0x18]
call fcn.0041c040
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x68], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x64], eax
mov eax, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], esi
cmp dword [esi + 0x38], 0
je 0x409d46
push str.Background
xor edx, edx
mov ecx, esi
call fcn.004072a0
mov edx, dword [esi + 0x78]
lea ecx, [esi + 0x40]
add esp, 4
push eax
call fcn.00427ca0
add esp, 4
add ebx, 4
cmp ebx, dword [esp + 0x1c]
jne 0x409c63
call fcn.00409330
mov eax, dword [edi + 0x1f6c]
test eax, eax
je 0x409d7d
test dword [eax + 0xc], 0x2000
jne 0x409d7d
mov ebx, dword [eax + 0x330]
mov eax, dword [edi + 0x1f74]
mov dword [esp + 0x20], ebx
jmp 0x409d91
xor ebx, ebx
mov dword [esp + 0x20], ebx
test eax, eax
je 0x409d8f
mov eax, dword [edi + 0x1f74]
jmp 0x409d91
xor eax, eax
mov esi, dword [edi + 0x1280]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x1278]
lea eax, [esi + eax*4]
mov dword [esp + 0x1c], eax
cmp esi, eax
je 0x409df5
mov edi, dword [esp + 0x14]
mov ecx, dword [esi]
cmp byte [ecx + 0xba], 0
je 0x409dea
cmp byte [ecx + 0xc2], 0
jne 0x409dea
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x409dea
cmp ecx, ebx
je 0x409dea
cmp ecx, edi
je 0x409dea
shr edx, 0x19
and edx, 1
call fcn.00408f10
mov eax, dword [esp + 0x1c]
add esi, 4
cmp esi, eax
jne 0x409db4
mov edi, dword [esp + 0x10]
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x20]
test ecx, ecx
je 0x409e1f
cmp byte [ecx + 0xba], 0
je 0x409e1f
cmp byte [ecx + 0xc2], 0
jne 0x409e1f
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.00408f10
inc esi
cmp esi, 2
jl 0x409df7
cmp byte [edi + 0x4b], 0
je 0x409e55
mov ecx, dword [edi + 0x2184]
cmp ecx, 0xffffffff
je 0x409e55
push dword [edi + 0xbc]
movss xmm0, dword [edi + 0xc6c]
push dword [edi + 0xb8]
sub esp, 8
call fcn.00403f60
add esp, 0x10
mov dword [edi + 0xa0], 0
mov dword [edi + 0x9c], 0
mov ecx, dword [edi + 0x1d94]
mov eax, dword [edi + 0x1d8c]
mov dword [esp + 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x20], eax
cmp ecx, eax
je 0x409fc5
nop dword [eax + eax]
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov ebx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov ecx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [ebx + 4]
add esi, ecx
mov dword [esp + 0x1c], ecx
cmp esi, edi
jle 0x409ed6
test edi, edi
je 0x409ebe
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x409ec3
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.0041c040
mov ecx, dword [esp + 0x1c]
mov dword [ebx], esi
mov ebx, dword [esp + 0x18]
mov esi, dword [ebx + 0x7c]
mov eax, dword [esi]
test eax, eax
je 0x409f23
shl eax, 2
push eax
mov eax, dword [ebx + 0x78]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x409f1d
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.0041c040
mov dword [esi], 0
cmp dword [ebx + 0x3c], 0
je 0x409f4c
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.004072a0
mov edx, dword [ebx + 0x78]
lea ecx, [ebx + 0x40]
add esp, 4
push eax
call fcn.00427ca0
add esp, 4
mov edi, dword [ebx + 0x58]
mov eax, dword [ebx + 0x50]
lea eax, [edi + eax*4]
mov dword [esp + 0x1c], eax
cmp edi, eax
je 0x409f9a
nop dword [eax]
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x409f93
lea eax, [ecx*8]
sub eax, ecx
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [edx + eax - 0x18], 0
jne 0x409f8f
cmp dword [edx + eax - 0x14], 0
jne 0x409f8f
dec ecx
sub eax, 0x38
mov dword [esi], ecx
test ecx, ecx
jg 0x409f74
mov eax, dword [esp + 0x1c]
add edi, 4
cmp edi, eax
jne 0x409f60
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x4c]
mov ecx, dword [esp + 0x14]
add ecx, 4
add dword [edi + 0x9c], eax
mov eax, dword [ebx + 0x48]
add dword [edi + 0xa0], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x20]
jne 0x409e90
mov eax, dword [edi + 0x23d0]
mov esi, dword [edi + 0x23d8]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x409ff7
mov ebx, dword [esp + 0x10]
nop
cmp dword [esi + 4], 5
jne 0x409ff0
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x409fe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret