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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [0x100d9260]
push esi
push edi
mov dword [esp + 0x14], ebx
mov eax, dword [ebx + 0x3fe0]
cmp dword [ebx + 0x3fe4], eax
je 0x1000af6f
call fcn.1000ab00
mov eax, dword [ebx + 0x3fe0]
cmp dword [ebx + 0x3fec], eax
je 0x1000b4a8
mov dword [ebx + 0x3fec], eax
mov dword [ebx + 0xb0], 0
mov eax, dword [ebx + 0x5f64]
mov esi, dword [ebx + 0x5f6c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1000afb8
cmp dword [esi + 4], 4
jne 0x1000afb1
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1000afa1
mov ecx, dword [ebx + 0x4b44]
mov eax, dword [ebx + 0x4b3c]
mov dword [esp + 0x18], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x2c], eax
cmp ecx, eax
je 0x1000b188
nop word [eax + eax]
mov esi, dword [ecx]
mov eax, dword [0x100d9260]
mov dword [esp + 0x24], eax
lea edi, [esi + 0x80]
mov dword [esi + 0x30], edi
lea ebx, [edi + 0x10]
lea eax, [esi + 0xc0]
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
jns 0x1000b065
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edx, eax
mov dword [esp + 0x1c], edx
cmp edx, ecx
jle 0x1000b065
lea ecx, [edx*4]
call fcn.10007e60
mov edx, dword [ebx + 8]
mov dword [esp + 0x20], eax
test edx, edx
je 0x1000b05b
mov ecx, dword [ebx]
shl ecx, 2
push ecx
push edx
push eax
call fcn.10067c30
mov ecx, dword [ebx + 8]
add esp, 0xc
call fcn.10007f00
mov eax, dword [esp + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov ebx, dword [esi + 0xbc]
mov ecx, dword [ebx + 4]
test ecx, ecx
jns 0x1000b0cd
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edx, eax
mov dword [esp + 0x1c], edx
cmp edx, ecx
jle 0x1000b0cd
lea ecx, [edx*4]
call fcn.10007e60
mov edx, dword [ebx + 8]
mov dword [esp + 0x20], eax
test edx, edx
je 0x1000b0c3
mov ecx, dword [ebx]
shl ecx, 2
push ecx
push edx
push eax
call fcn.10067c30
mov ecx, dword [ebx + 8]
add esp, 0xc
call fcn.10007f00
mov eax, dword [esp + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov eax, dword [esi + 4]
shr eax, 0xc
and al, 1
mov byte [edi], 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
je 0x1000b117
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 0
jmp 0x1000b129
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], esi
cmp dword [esi + 0x78], 0
je 0x1000b16f
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10007f70
mov edx, dword [esi + 0xb8]
add esp, 4
mov ecx, edi
push eax
call fcn.100329d0
add esp, 4
mov ecx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x2c]
jne 0x1000afe0
mov ebx, dword [esp + 0x14]
call fcn.1000a5b0
mov eax, dword [ebx + 0x4d58]
test eax, eax
je 0x1000b1b2
test dword [eax + 0xc], 0x2000
jne 0x1000b1b2
mov edi, dword [eax + 0x350]
mov ebx, dword [ebx + 0x4d60]
mov dword [esp + 0x24], edi
jmp 0x1000b1c6
xor edi, edi
mov dword [esp + 0x24], edi
test eax, eax
je 0x1000b1c4
mov ebx, dword [ebx + 0x4d60]
jmp 0x1000b1c6
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
mov esi, dword [eax + 0x4024]
mov eax, dword [eax + 0x401c]
lea eax, [esi + eax*4]
mov dword [esp + 0x2c], eax
cmp esi, eax
je 0x1000b222
mov ecx, dword [esi]
cmp byte [ecx + 0xe7], 0
je 0x1000b21b
cmp byte [ecx + 0xee], 0
jne 0x1000b21b
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x1000b21b
cmp ecx, edi
je 0x1000b21b
cmp ecx, ebx
je 0x1000b21b
shr edx, 0x19
and edx, 1
call fcn.1000a090
mov eax, dword [esp + 0x2c]
add esi, 4
cmp esi, eax
jne 0x1000b1e5
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x24]
test ecx, ecx
je 0x1000b24c
cmp byte [ecx + 0xe7], 0
je 0x1000b24c
cmp byte [ecx + 0xee], 0
jne 0x1000b24c
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.1000a090
inc esi
cmp esi, 2
jl 0x1000b224
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 0x4c], 0
je 0x1000b286
mov ecx, dword [ebx + 0x4ed8]
cmp ecx, 0xffffffff
je 0x1000b286
push dword [ebx + 0xe0c]
movss xmm0, dword [ebx + 0x3a2c]
push dword [ebx + 0xe08]
sub esp, 8
call fcn.10005930
add esp, 0x10
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xa8], 0
mov ecx, dword [ebx + 0x4b44]
mov eax, dword [ebx + 0x4b3c]
mov dword [esp + 0x20], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x24], eax
cmp ecx, eax
je 0x1000b47b
nop dword [eax]
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov esi, dword [eax + 0xb8]
mov eax, dword [eax + 0xbc]
mov ebx, dword [esi]
mov edi, dword [eax]
mov ecx, dword [esi + 4]
add edi, ebx
mov dword [esp + 0x1c], ebx
cmp edi, ecx
jle 0x1000b33f
test ecx, ecx
je 0x1000b2f2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000b2f7
mov eax, 8
cmp eax, edi
mov ebx, edi
cmovg ebx, eax
cmp ebx, ecx
jle 0x1000b33b
lea ecx, [ebx*4]
call fcn.10007e60
mov edx, dword [esi + 8]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x1000b335
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call fcn.10067c30
mov ecx, dword [esi + 8]
add esp, 0xc
call fcn.10007f00
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esi], edi
mov esi, dword [ecx + 0xbc]
mov eax, dword [esi]
test eax, eax
je 0x1000b3c1
shl eax, 2
push eax
mov eax, dword [ecx + 0xb8]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ebx*4]
push eax
call fcn.10067c30
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1000b3bb
mov eax, ecx
xor edi, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edi, eax
cmp edi, ecx
jle 0x1000b3bb
lea ecx, [edi*4]
call fcn.10007e60
mov ebx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1000b3b5
mov ecx, dword [esi]
shl ecx, 2
push ecx
push eax
push ebx
call fcn.10067c30
mov ecx, dword [esi + 8]
add esp, 0xc
call fcn.10007f00
mov dword [esi + 8], ebx
mov dword [esi + 4], edi
mov dword [esi], 0
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 0x7c], 0
je 0x1000b3f4
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.10007f70
mov edx, dword [ebx + 0xb8]
lea ecx, [ebx + 0x80]
add esp, 4
push eax
call fcn.100329d0
add esp, 4
mov edi, dword [ebx + 0x98]
mov eax, dword [ebx + 0x90]
lea eax, [edi + eax*4]
mov dword [esp + 0x2c], eax
cmp edi, eax
je 0x1000b446
mov ebx, eax
nop dword [eax]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
jle 0x1000b43b
lea ecx, [eax + eax*4]
shl ecx, 3
nop
mov edx, dword [esi + 8]
cmp dword [ecx + edx - 0xc], 0
jne 0x1000b43b
cmp dword [ecx + edx - 8], 0
jne 0x1000b43b
dec eax
sub ecx, 0x28
mov dword [esi], eax
test eax, eax
jg 0x1000b420
add edi, 4
cmp edi, ebx
jne 0x1000b410
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x8c]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add dword [ebx + 0xa8], eax
mov eax, dword [ecx + 0x88]
mov ecx, dword [esp + 0x20]
add dword [ebx + 0xac], eax
add ecx, 4
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x24]
jne 0x1000b2c0
mov eax, dword [ebx + 0x5f64]
mov esi, dword [ebx + 0x5f6c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1000b4a8
cmp dword [esi + 4], 5
jne 0x1000b4a1
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1000b491
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret