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

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [0x100b9cac]
mov dword [esp + 4], edi
mov eax, dword [edi + 0x3f5c]
cmp eax, dword [edi + 0x3f58]
je 0x10020441
call fcn.10012ba0
mov eax, dword [edi + 0x3f58]
cmp dword [edi + 0x3f60], eax
je 0x10020739
mov dword [edi + 0x3f60], eax
push ebx
mov dword [edi + 0xb4], 0
mov eax, dword [edi + 0x5f14]
push esi
mov esi, dword [edi + 0x5f1c]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x10020497
nop dword [eax + eax]
cmp dword [esi + 4], 4
jne 0x10020490
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x10020480
push ebp
call fcn.10020930
mov ebx, dword [edi + 0x4ab4]
mov eax, dword [edi + 0x4aac]
lea eax, [ebx + eax*4]
cmp ebx, eax
je 0x10020550
mov edi, eax
mov ebp, dword [ebx]
mov esi, dword [0x100b9cac]
push 0
lea ecx, [ebp + 0x50]
lea eax, [ebp + 0x80]
mov dword [ebp + 0x78], ecx
mov dword [ebp + 0x7c], eax
call fcn.1002dfd0
mov ecx, dword [ebp + 0x7c]
push 0
call fcn.1002dfd0
mov byte [ebp + 0x40], 1
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x74], ebp
cmp dword [ebp + 0x38], 0
je 0x10020541
push str.Background
push 0
push ebp
call fcn.10015a40
push eax
push dword [ebp + 0x78]
lea eax, [ebp + 0x40]
push eax
call fcn.10031f20
add esp, 0x18
add ebx, 4
cmp ebx, edi
jne 0x100204b6
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x4c84]
test eax, eax
je 0x10020575
test dword [eax + 0xc], 0x2000
jne 0x10020575
mov ebx, dword [eax + 0x328]
mov ebp, dword [edi + 0x4c8c]
mov dword [esp + 0x18], ebx
jmp 0x10020589
xor ebx, ebx
mov dword [esp + 0x18], ebx
test eax, eax
je 0x10020587
mov ebp, dword [edi + 0x4c8c]
jmp 0x10020589
xor ebp, ebp
mov esi, dword [edi + 0x3fa8]
mov eax, dword [edi + 0x3fa0]
mov dword [esp + 0x1c], ebp
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x100205f2
mov edi, eax
nop word [eax + eax]
mov eax, dword [esi]
cmp byte [eax + 0xba], 0
je 0x100205e7
cmp byte [eax + 0xc2], 0
jne 0x100205e7
mov ecx, dword [eax + 0xc]
test ecx, 0x1000000
jne 0x100205e7
cmp eax, ebx
je 0x100205e7
cmp eax, ebp
je 0x100205e7
shr ecx, 0x19
and ecx, 1
push ecx
push eax
call fcn.10009080
add esp, 8
add esi, 4
cmp esi, edi
jne 0x100205b0
mov edi, dword [esp + 0x10]
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x18]
test ecx, ecx
je 0x10020621
cmp byte [ecx + 0xba], 0
je 0x10020621
cmp byte [ecx + 0xc2], 0
jne 0x10020621
mov eax, dword [ecx + 0xc]
shr eax, 0x19
and eax, 1
push eax
push ecx
call fcn.10009080
add esp, 8
inc esi
cmp esi, 2
jl 0x100205f4
cmp byte [edi + 0x44], 0
je 0x10020667
mov eax, dword [edi + 0x4e9c]
cmp eax, 0xffffffff
je 0x10020667
movss xmm0, dword [edi + 0x3990]
push 0x30000000
push 0xff000000
push 0xffffffffffffffff
push eax
push ecx
movss dword [esp], xmm0
push dword [edi + 0xcc]
push dword [edi + 0xc8]
call fcn.10020f10
add esp, 0x1c
mov dword [edi + 0xb0], 0
mov dword [edi + 0xac], 0
mov ecx, dword [edi + 0x4ab4]
mov eax, dword [edi + 0x4aac]
mov dword [esp + 0x10], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x14], eax
cmp ecx, eax
je 0x10020704
mov ebx, dword [ecx]
lea esi, [ebx + 0x78]
push esi
call fcn.10013c20
add esp, 4
cmp dword [ebx + 0x3c], 0
je 0x100206c6
push str.Foreground
push 1
push ebx
call fcn.10015a40
push eax
push dword [esi]
lea eax, [ebx + 0x40]
push eax
call fcn.10031f20
add esp, 0x18
mov esi, dword [ebx + 0x58]
mov eax, dword [ebx + 0x50]
lea ebp, [esi + eax*4]
cmp esi, ebp
je 0x100206e1
mov ecx, dword [esi]
call fcn.1003bea0
add esi, 4
cmp esi, ebp
jne 0x100206d3
mov eax, dword [ebx + 0x4c]
mov ecx, dword [esp + 0x10]
add dword [edi + 0xac], eax
add ecx, 4
mov eax, dword [ebx + 0x48]
add dword [edi + 0xb0], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x14]
jne 0x10020696
mov eax, dword [edi + 0x5f14]
mov esi, dword [edi + 0x5f1c]
pop ebp
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x10020737
nop dword [eax + eax]
cmp dword [esi + 4], 5
jne 0x10020730
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x10020720
pop esi
pop ebx
pop edi
add esp, 0x10
ret