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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10145040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x101739b4]
mov dword [ebp - 0x20], edi
mov eax, dword [edi + 0x3dd4]
cmp eax, dword [edi + 0x3dd0]
je 0x100178df
call fcn.100175b0
mov eax, dword [edi + 0x3dd8]
mov edx, 4
mov dword [ebp - 0x1c], eax
mov ecx, edi
mov eax, dword [edi + 0x3dd0]
mov dword [ebp - 0x10], eax
mov dword [edi + 0x3dd8], eax
mov dword [edi + 0xa0], 0
call fcn.10014530
cmp dword [edi + 0x3fdc], 0
mov dword [ebp - 8], 0
je 0x100179e0
xor edx, edx
mov dword [ebp - 0xc], edx
nop word [eax + eax]
mov eax, dword [edi + 0x3fe4]
mov ebx, 2
mov eax, dword [edx + eax]
mov dword [ebp - 0x14], eax
lea esi, [eax + 0x64]
push 0
mov ecx, esi
call fcn.10025c00
add esi, 0xc
sub ebx, 1
jne 0x10017944
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x30], ebx
je 0x100179c4
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10014590
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x100179c4
cmp ecx, 1
jne 0x10017989
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x1c], ebx
jne 0x10017989
cmp dword [ecx + 0x20], ebx
je 0x100179c4
mov ecx, dword [esi + 0x68]
lea ebx, [esi + 0x64]
mov esi, dword [ebx]
cmp esi, ecx
jne 0x100179b7
inc esi
test ecx, ecx
je 0x100179a5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100179aa
mov eax, 8
cmp eax, esi
mov ecx, ebx
cmovg esi, eax
push esi
call fcn.10025b80
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], edx
inc dword [ebx]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
inc ecx
add edx, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
cmp ecx, dword [edi + 0x3fdc]
jne 0x10017930
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
je 0x100179ed
call fcn.100171e0
mov ecx, dword [edi + 0x4138]
test ecx, ecx
je 0x10017a14
test dword [ecx + 8], 0x2000
jne 0x10017a14
mov eax, dword [ecx + 0x2e8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x4140]
jmp 0x10017a2a
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10017a28
mov eax, dword [edi + 0x4140]
jmp 0x10017a2a
xor eax, eax
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x3de8], ebx
je 0x10017a87
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x3df0]
mov ecx, dword [esi + eax]
cmp byte [ecx + 0x8e], 0
je 0x10017a7b
cmp byte [ecx + 0x95], 0
jne 0x10017a7b
mov edx, dword [ecx + 8]
test edx, 0x1000000
jne 0x10017a7b
cmp ecx, dword [ebp - 0xc]
je 0x10017a7b
cmp ecx, dword [ebp - 8]
je 0x10017a7b
shr edx, 0x19
and edx, 1
call fcn.10016dd0
inc ebx
add esi, 4
cmp ebx, dword [edi + 0x3de8]
jne 0x10017a40
xor esi, esi
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x18]
test ecx, ecx
je 0x10017ab8
cmp byte [ecx + 0x8e], 0
je 0x10017ab8
cmp byte [ecx + 0x95], 0
jne 0x10017ab8
mov edx, dword [ecx + 8]
shr edx, 0x19
and edx, 1
call fcn.10016dd0
inc esi
cmp esi, 2
jl 0x10017a90
cmp byte [edi + 0x58], 0
je 0x10017af6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
je 0x10017af6
mov ecx, dword [edi + 0x4154]
cmp ecx, 0xffffffff
je 0x10017af6
push dword [edi + 0xd54]
movss xmm0, dword [edi + 0x3868]
push dword [edi + 0xd50]
sub esp, 8
call fcn.100135c0
add esp, 0x10
cmp dword [edi + 0x3fdc], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0x98], 0
mov dword [ebp - 0xc], 0
jle 0x10017cb9
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x3fe4]
mov esi, dword [ecx + eax]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x70]
add eax, ecx
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [esi + 0x64]
call fcn.10025c00
mov eax, dword [esi + 0x70]
test eax, eax
je 0x10017b6a
mov ecx, dword [ebp - 0x14]
shl eax, 2
push eax
mov eax, dword [esi + 0x6c]
push dword [esi + 0x78]
lea eax, [eax + ecx*4]
push eax
call fcn.100af6b0
add esp, 0xc
lea ecx, [esi + 0x70]
push 0
call fcn.10025c00
cmp dword [esi + 0x34], 0
je 0x10017be3
push str.Foreground
mov edx, 1
mov ecx, esi
call fcn.10014590
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10017be3
cmp ecx, 1
jne 0x10017ba1
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x1c], 0
jne 0x10017ba1
cmp dword [ecx + 0x20], 0
je 0x10017be3
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
cmp edx, ecx
jne 0x10017bd4
inc edx
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x10017bc1
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, ecx
jmp 0x10017bc6
mov eax, 8
cmp eax, edx
lea ecx, [esi + 0x64]
cmovg edx, eax
push edx
call fcn.10025b80
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x6c]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], edx
inc dword [esi + 0x64]
mov byte [esi + 0x38], 1
lea edx, [esi + 0x6c]
cmp dword [esi + 0x64], 0
mov dword [ebp - 0x1c], edx
jle 0x10017bf7
mov eax, dword [edx]
jmp 0x10017bf9
xor eax, eax
mov dword [esi + 0x48], eax
xor ebx, ebx
mov eax, dword [esi + 0x64]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x101739b4]
mov dword [esi + 0x54], eax
mov eax, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
cmp dword [esi + 0x64], ebx
jle 0x10017c8e
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov edi, ecx
mov eax, dword [edx]
mov edx, dword [ecx + eax]
mov eax, dword [edx]
test eax, eax
je 0x10017c6a
mov ebx, dword [edx + 8]
lea ecx, [eax + eax*4]
cmp dword [ebx + ecx*8 - 0xc], 0
jne 0x10017c6a
cmp dword [ebx + ecx*8 - 8], 0
jne 0x10017c6a
dec eax
mov dword [edx], eax
mov ebx, dword [edx + 0x18]
inc edi
add ebx, dword [esi + 0x44]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x44], ebx
add ecx, 4
mov eax, dword [edx + 0xc]
add dword [esi + 0x40], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
cmp edi, dword [esi + 0x64]
jl 0x10017c48
mov edi, dword [ebp - 0x20]
add dword [edi + 0x98], ebx
mov eax, dword [esi + 0x40]
add dword [edi + 0x9c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
inc eax
add ecx, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp eax, dword [edi + 0x3fdc]
jl 0x10017b23
xor esi, esi
cmp dword [edi + 0x5238], esi
jle 0x10017cf4
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [edi + 0x5240]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x10017ce8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5238]
jl 0x10017cd0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10096753
mov esp, ebp
pop ebp
ret