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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10101040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x10103540]
push esi
push edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 0x3fe4]
cmp eax, dword [ebx + 0x3fe0]
je 0x1001028f
call fcn.1000fd50
mov eax, dword [ebx + 0x3fe0]
cmp dword [ebx + 0x3fec], eax
je 0x10010797
mov dword [ebx + 0x3fec], eax
mov dword [ebx + 0xac], 0
mov eax, dword [ebx + 0x5ecc]
mov esi, dword [ebx + 0x5ed4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100102de
cmp dword [esi + 4], 4
jne 0x100102d7
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x100102c7
mov ecx, dword [ebx + 0x4ae8]
mov eax, dword [ebx + 0x4ae0]
mov dword [ebp - 8], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x10], eax
cmp ecx, eax
je 0x10010490
nop dword [eax + eax]
mov esi, dword [ecx]
mov eax, dword [0x10103540]
mov dword [ebp - 0xc], 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 0x10010347
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, ebx
call fcn.1002bd30
mov dword [ebx], 0
mov ebx, dword [esi + 0xbc]
mov ecx, dword [ebx + 4]
test ecx, ecx
jns 0x10010372
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, ebx
call fcn.1002bd30
mov dword [ebx], 0
mov edx, dword [esi + 4]
shr edx, 0xc
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
and dl, 1
je 0x100103b7
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x100103c3
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
test dl, dl
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
cmovne ecx, eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x28], ecx
mov ecx, dword [ebp - 0xc]
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 0x1001047b
push str.Background
xor edx, edx
mov ecx, esi
call fcn.1000d360
mov edi, dword [esi + 0xb8]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x1001047b
cmp eax, 1
jne 0x10010428
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x10010428
cmp dword [eax + 0x20], 0
je 0x1001047b
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, ecx
jne 0x10010459
inc edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x10010447
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
sar eax, 1
add eax, ecx
jmp 0x1001044c
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.1002bd30
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
inc dword [esi + 0x84]
mov eax, dword [ebx + 0x18]
add dword [esi + 0x8c], eax
mov eax, dword [ebx + 0xc]
add dword [esi + 0x88], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0x10]
jne 0x10010300
mov ebx, dword [ebp - 0x14]
call fcn.1000f7d0
mov eax, dword [ebx + 0x4ce8]
test eax, eax
je 0x100104b9
test dword [eax + 0xc], 0x2000
jne 0x100104b9
mov edi, dword [eax + 0x348]
mov ebx, dword [ebx + 0x4cf0]
mov dword [ebp - 0x1c], edi
jmp 0x100104cc
xor edi, edi
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x100104ca
mov ebx, dword [ebx + 0x4cf0]
jmp 0x100104cc
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov esi, dword [eax + 0x4024]
mov eax, dword [eax + 0x401c]
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x1001052c
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xdf], 0
je 0x10010525
cmp byte [ecx + 0xe6], 0
jne 0x10010525
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10010525
cmp ecx, edi
je 0x10010525
cmp ecx, ebx
je 0x10010525
shr edx, 0x19
and edx, 1
call fcn.1000f200
mov eax, dword [ebp - 0x10]
add esi, 4
cmp esi, eax
jne 0x100104f0
xor esi, esi
nop
mov ecx, dword [ebp + esi*4 - 0x1c]
test ecx, ecx
je 0x10010558
cmp byte [ecx + 0xdf], 0
je 0x10010558
cmp byte [ecx + 0xe6], 0
jne 0x10010558
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.1000f200
inc esi
cmp esi, 2
jl 0x10010530
mov ebx, dword [ebp - 0x14]
cmp byte [ebx + 0x4c], 0
je 0x10010591
mov ecx, dword [ebx + 0x4e54]
cmp ecx, 0xffffffff
je 0x10010591
push dword [ebx + 0xe0c]
movss xmm0, dword [ebx + 0x3a2c]
push dword [ebx + 0xe08]
sub esp, 8
call fcn.1000ac10
add esp, 0x10
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xa4], 0
mov ecx, dword [ebx + 0x4ae8]
mov eax, dword [ebx + 0x4ae0]
mov dword [ebp - 0xc], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
cmp ecx, eax
je 0x10010764
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
mov ebx, dword [ecx + 0xb8]
mov eax, dword [ecx + 0xbc]
mov edx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [ebx + 4]
add esi, edx
mov dword [ebp - 0x10], edx
cmp esi, edi
jle 0x1001060e
test edi, edi
je 0x100105f4
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x100105f9
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.1002bd30
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ebx], esi
mov esi, dword [ecx + 0xbc]
mov eax, dword [esi]
test eax, eax
je 0x10010660
shl eax, 2
push eax
mov eax, dword [ecx + 0xb8]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
push eax
call fcn.10065810
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x10010657
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1002bd30
mov ecx, dword [ebp - 8]
mov dword [esi], 0
cmp dword [ecx + 0x7c], 0
je 0x100106f1
push str.Foreground
mov edx, 1
call fcn.1000d360
mov ecx, dword [ebp - 8]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
mov esi, dword [ecx + 0xb8]
test eax, eax
je 0x100106f1
cmp eax, 1
jne 0x100106a1
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x100106a1
cmp dword [eax + 0x20], 0
je 0x100106f1
mov edi, dword [esi]
mov ecx, dword [esi + 4]
cmp edi, ecx
jne 0x100106cc
inc edi
test ecx, ecx
je 0x100106ba
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100106bf
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.1002bd30
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebx
mov ecx, dword [ebp - 8]
inc dword [esi]
inc dword [ecx + 0x84]
mov eax, dword [ebx + 0x18]
add dword [ecx + 0x8c], eax
mov eax, dword [ebx + 0xc]
add dword [ecx + 0x88], eax
mov edi, dword [ecx + 0x98]
mov eax, dword [ecx + 0x90]
lea ebx, [edi + eax*4]
cmp edi, ebx
je 0x10010737
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1001072d
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [edx + eax - 0xc], 0
jne 0x1001072d
cmp dword [edx + eax - 8], 0
jne 0x1001072d
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10010712
add edi, 4
cmp edi, ebx
jne 0x10010704
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x8c]
add dword [ebx + 0xa4], eax
mov eax, dword [ecx + 0x88]
mov ecx, dword [ebp - 0xc]
add dword [ebx + 0xa8], eax
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x18]
jne 0x100105c2
mov eax, dword [ebx + 0x5ecc]
mov esi, dword [ebx + 0x5ed4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10010797
nop word [eax + eax]
cmp dword [esi + 4], 5
jne 0x10010790
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10010780
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006399c
mov esp, ebp
pop ebp
ret