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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x43b638]
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x1230]
cmp dword [edi + 0x1234], eax
je 0x4071cb
call fcn.00406ea7
mov eax, dword [edi + 0x1230]
cmp dword [edi + 0x1238], eax
je 0x40748d
and dword [edi + 0xa4], 0
mov ecx, edi
push 4
pop edx
mov dword [edi + 0x1238], eax
call fcn.00404b56
mov ebx, dword [edi + 0x1d94]
mov eax, dword [edi + 0x1d8c]
lea eax, [ebx + eax*4]
cmp ebx, eax
je 0x4072b0
mov edi, eax
mov edx, dword [ebx]
mov esi, dword [0x43b638]
push 0
mov dword [esp + 0x10], edx
lea eax, [edx + 0x40]
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], eax
lea eax, [edx + 0x80]
mov dword [edx + 0x78], ecx
mov dword [edx + 0x7c], eax
call fcn.004160b5
mov ecx, dword [esp + 0xc]
push 0
mov ecx, dword [ecx + 0x7c]
call fcn.004160b5
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov byte [eax], 1
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [edx + 0x5c], eax
mov dword [edx + 0x60], ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [edx + 0x64], eax
mov dword [edx + 0x68], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [edx + 0x6c], eax
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], edx
cmp dword [edx + 0x38], 0
je 0x4072a1
mov esi, dword [esp + 0xc]
xor edx, edx
push str.Background
mov ecx, esi
call fcn.0040589d
mov edx, dword [esi + 0x78]
pop ecx
push eax
lea ecx, [esi + 0x40]
call fcn.0041f026
pop ecx
add ebx, 4
cmp ebx, edi
jne 0x407207
mov edi, dword [esp + 0x10]
call fcn.00406c35
mov eax, dword [edi + 0x1f6c]
test eax, eax
je 0x4072d4
test dword [eax + 0xc], 0x2000
jne 0x4072d4
mov ebx, dword [eax + 0x330]
mov dword [esp + 0x18], ebx
jmp 0x4072de
xor ebx, ebx
mov dword [esp + 0x18], ebx
test eax, eax
je 0x4072e6
mov eax, dword [edi + 0x1f74]
jmp 0x4072e8
xor eax, eax
mov esi, dword [edi + 0x1280]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1278]
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x407341
mov edi, dword [esp + 0xc]
mov ecx, dword [esi]
call fcn.00405c4f
test al, al
je 0x407334
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x407334
cmp ecx, ebx
je 0x407334
cmp ecx, edi
je 0x407334
shr edx, 0x19
and edx, 1
call fcn.004068fe
add esi, 4
cmp esi, dword [esp + 0x14]
jne 0x40730b
mov edi, dword [esp + 0x10]
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x18]
test ecx, ecx
je 0x407362
call fcn.00405c4f
test al, al
je 0x407362
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.004068fe
inc esi
cmp esi, 2
jl 0x407343
cmp byte [edi + 0x4b], 0
je 0x407397
mov ecx, dword [edi + 0x2184]
cmp ecx, 0xffffffff
je 0x407397
push dword [edi + 0xbc]
movss xmm0, dword [edi + 0xc6c]
push dword [edi + 0xb8]
push ecx
push ecx
call fcn.00403376
add esp, 0x10
and dword [edi + 0xa0], 0
and dword [edi + 0x9c], 0
mov ebx, dword [edi + 0x1d94]
mov eax, dword [edi + 0x1d8c]
lea eax, [ebx + eax*4]
mov dword [esp + 0x18], eax
cmp ebx, eax
je 0x407483
mov esi, dword [ebx]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
mov eax, dword [eax]
mov edx, dword [ecx]
add eax, edx
push eax
mov dword [esp + 0x18], edx
call fcn.004160b5
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0xc], ecx
mov eax, dword [ecx]
test eax, eax
je 0x40740d
shl eax, 2
push eax
mov eax, dword [esi + 0x78]
push dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 8]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
call fcn.004160b5
cmp dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [esp + 0xc], ecx
je 0x40743b
xor edx, edx
mov ecx, esi
push str.Foreground
inc edx
call fcn.0040589d
mov edx, dword [esi + 0x78]
pop ecx
push eax
lea ecx, [esi + 0x40]
call fcn.0041f026
pop ecx
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x10]
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x407464
mov edi, eax
mov ecx, dword [esi]
call fcn.0041c8f1
add esi, 4
cmp esi, edi
jne 0x40744e
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
add ebx, 4
add dword [edi + 0x9c], eax
mov eax, dword [ecx + 8]
add dword [edi + 0xa0], eax
cmp ebx, dword [esp + 0x18]
jne 0x4073c0
push 5
pop edx
mov ecx, edi
call fcn.00404b56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret