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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100de0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x1010a958]
mov dword [ebp - 0x10], edi
mov eax, dword [edi + 0x3e0c]
cmp eax, dword [edi + 0x3e08]
je 0x1001061f
call fcn.10010240
mov eax, dword [edi + 0x3e08]
cmp dword [edi + 0x3e10], eax
je 0x10010a19
mov dword [edi + 0x3e10], eax
mov dword [edi + 0xa8], 0
mov eax, dword [edi + 0x5b8c]
mov esi, dword [edi + 0x5b94]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x1001066e
cmp dword [esi + 4], 4
jne 0x10010667
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x10010657
call fcn.1000fe50
mov ecx, dword [edi + 0x4824]
mov eax, dword [edi + 0x481c]
mov dword [ebp - 8], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
cmp ecx, eax
je 0x1001078e
mov edi, dword [ecx]
mov esi, dword [0x1010a958]
push 0
lea ecx, [edi + 0x48]
lea eax, [edi + 0x78]
mov dword [edi + 0x70], ecx
mov dword [edi + 0x74], eax
call fcn.10020f70
mov ecx, dword [edi + 0x74]
push 0
call fcn.10020f70
mov byte [edi + 0x38], 1
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], edi
cmp dword [edi + 0x30], 0
je 0x10010779
push str.Background
xor edx, edx
mov ecx, edi
call fcn.1000dff0
mov esi, dword [edi + 0x70]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x10010779
cmp eax, 1
jne 0x1001072f
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x1001072f
cmp dword [eax + 0x20], 0
je 0x10010779
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp edx, ecx
jne 0x10010760
inc edx
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x1001074e
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, ecx
jmp 0x10010753
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10020e40
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebx
inc dword [esi]
inc dword [edi + 0x3c]
mov eax, dword [ebx + 0x18]
add dword [edi + 0x44], eax
mov eax, dword [ebx + 0xc]
add dword [edi + 0x40], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0xc]
jne 0x10010690
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x49d8]
test eax, eax
je 0x100107b2
test dword [eax + 0xc], 0x2000
jne 0x100107b2
mov ebx, dword [eax + 0x304]
mov eax, dword [edi + 0x49e0]
mov dword [ebp - 0x1c], ebx
jmp 0x100107c5
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
test eax, eax
je 0x100107c3
mov eax, dword [edi + 0x49e0]
jmp 0x100107c5
xor eax, eax
mov esi, dword [edi + 0x3e50]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x3e48]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x10010823
mov edi, dword [ebp - 8]
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x10010819
cmp byte [ecx + 0xb1], 0
jne 0x10010819
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10010819
cmp ecx, ebx
je 0x10010819
cmp ecx, edi
je 0x10010819
shr edx, 0x19
and edx, 1
call fcn.1000fa60
mov eax, dword [ebp - 0xc]
add esi, 4
cmp esi, eax
jne 0x100107e4
mov edi, dword [ebp - 0x10]
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x1c]
test ecx, ecx
je 0x1001084d
cmp byte [ecx + 0xaa], 0
je 0x1001084d
cmp byte [ecx + 0xb1], 0
jne 0x1001084d
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.1000fa60
inc esi
cmp esi, 2
jl 0x10010825
cmp byte [edi + 0x44], 0
je 0x10010883
mov ecx, dword [edi + 0x4b44]
cmp ecx, 0xffffffff
je 0x10010883
push dword [edi + 0xdc0]
movss xmm0, dword [edi + 0x3858]
push dword [edi + 0xdbc]
sub esp, 8
call fcn.1000c780
add esp, 0x10
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], 0
mov ecx, dword [edi + 0x4824]
mov eax, dword [edi + 0x481c]
mov dword [ebp - 8], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
cmp ecx, eax
je 0x100109ec
mov ebx, dword [ecx]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x70]
mov eax, dword [eax]
mov edi, dword [ecx]
add eax, edi
push eax
call fcn.10020f70
mov esi, dword [ebx + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x100108f6
shl eax, 2
push eax
mov eax, dword [ebx + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edi*4]
push eax
call fcn.100600d0
add esp, 0xc
mov ecx, esi
push 0
call fcn.10020f70
cmp dword [ebx + 0x34], 0
je 0x1001097d
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.1000dff0
mov esi, dword [ebx + 0x70]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x1001097d
cmp eax, 1
jne 0x10010933
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x10010933
cmp dword [eax + 0x20], 0
je 0x1001097d
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp edx, ecx
jne 0x10010964
inc edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x10010952
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
sar eax, 1
add eax, ecx
jmp 0x10010957
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10020e40
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [ebx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [ebx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [ebx + 0x40], eax
mov edi, dword [ebx + 0x50]
mov eax, dword [ebx + 0x48]
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
cmp edi, eax
je 0x100109c5
mov ebx, eax
nop
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
jle 0x100109bb
lea ecx, [eax + eax*4]
shl ecx, 3
nop
mov edx, dword [esi + 8]
cmp dword [ecx + edx - 0xc], 0
jne 0x100109bb
cmp dword [ecx + edx - 8], 0
jne 0x100109bb
dec eax
sub ecx, 0x28
mov dword [esi], eax
test eax, eax
jg 0x100109a0
add edi, 4
cmp edi, ebx
jne 0x10010990
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp - 8]
add ecx, 4
add dword [edi + 0xa0], eax
mov eax, dword [ebx + 0x40]
add dword [edi + 0xa4], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0x18]
jne 0x100108b4
mov eax, dword [edi + 0x5b8c]
mov esi, dword [edi + 0x5b94]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x10010a19
cmp dword [esi + 4], 5
jne 0x10010a12
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x10010a02
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e256
mov esp, ebp
pop ebp
ret