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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10104040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x10106690]
push esi
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 0x3f14]
cmp eax, dword [ebx + 0x3f10]
je 0x10012d2f
call fcn.10012950
mov eax, dword [ebx + 0x3f10]
cmp dword [ebx + 0x3f18], eax
je 0x100131a9
mov dword [ebx + 0x3f18], eax
mov dword [ebx + 0xa8], 0
mov eax, dword [ebx + 0x5dbc]
mov esi, dword [ebx + 0x5dc4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10012d7e
cmp dword [esi + 4], 4
jne 0x10012d77
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10012d67
call fcn.10012560
mov ecx, dword [ebx + 0x4a28]
mov eax, dword [ebx + 0x4a20]
mov dword [ebp - 8], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
cmp ecx, eax
je 0x10012eda
mov esi, dword [ecx]
mov ebx, dword [0x10106690]
lea edi, [esi + 0x48]
lea eax, [esi + 0x78]
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], eax
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10012dd3
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, edi
call fcn.100240b0
mov dword [edi], 0
mov edi, dword [esi + 0x74]
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10012dfb
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, edi
call fcn.100240b0
mov dword [edi], 0
mov byte [esi + 0x38], 1
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], esi
cmp dword [esi + 0x30], 0
je 0x10012ec5
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10010540
mov edi, dword [esi + 0x70]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x10012ec5
cmp eax, 1
jne 0x10012e7b
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x10012e7b
cmp dword [eax + 0x20], 0
je 0x10012ec5
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, ecx
jne 0x10012eac
inc edx
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x10012e9a
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, ecx
jmp 0x10012e9f
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.100240b0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
inc dword [esi + 0x3c]
mov eax, dword [ebx + 0x18]
add dword [esi + 0x44], eax
mov eax, dword [ebx + 0xc]
add dword [esi + 0x40], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0xc]
jne 0x10012da0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x4be0]
test eax, eax
je 0x10012efe
test dword [eax + 0xc], 0x2000
jne 0x10012efe
mov edi, dword [eax + 0x308]
mov ebx, dword [ebx + 0x4be8]
mov dword [ebp - 0x1c], edi
jmp 0x10012f11
xor edi, edi
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x10012f0f
mov ebx, dword [ebx + 0x4be8]
jmp 0x10012f11
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov esi, dword [eax + 0x3f50]
mov eax, dword [eax + 0x3f48]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x10012f6c
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xae], 0
je 0x10012f65
cmp byte [ecx + 0xb5], 0
jne 0x10012f65
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10012f65
cmp ecx, edi
je 0x10012f65
cmp ecx, ebx
je 0x10012f65
shr edx, 0x19
and edx, 1
call fcn.10012170
mov eax, dword [ebp - 0xc]
add esi, 4
cmp esi, eax
jne 0x10012f30
xor esi, esi
nop
mov ecx, dword [ebp + esi*4 - 0x1c]
test ecx, ecx
je 0x10012f98
cmp byte [ecx + 0xae], 0
je 0x10012f98
cmp byte [ecx + 0xb5], 0
jne 0x10012f98
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.10012170
inc esi
cmp esi, 2
jl 0x10012f70
mov ebx, dword [ebp - 0x10]
cmp byte [ebx + 0x44], 0
je 0x10012fd1
mov ecx, dword [ebx + 0x4d60]
cmp ecx, 0xffffffff
je 0x10012fd1
push dword [ebx + 0xe08]
movss xmm0, dword [ebx + 0x3984]
push dword [ebx + 0xe04]
sub esp, 8
call fcn.1000ee70
add esp, 0x10
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov ecx, dword [ebx + 0x4a28]
mov eax, dword [ebx + 0x4a20]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
cmp ecx, eax
je 0x1001317c
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
mov ebx, dword [ecx + 0x70]
mov eax, dword [ecx + 0x74]
mov edx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [ebx + 4]
add esi, edx
mov dword [ebp - 0xc], edx
cmp esi, edi
jle 0x10013048
test edi, edi
je 0x1001302e
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x10013033
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.100240b0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ebx], esi
mov esi, dword [ecx + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x10013094
shl eax, 2
push eax
mov eax, dword [ecx + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
push eax
call fcn.10081a20
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1001308b
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.100240b0
mov ecx, dword [ebp - 8]
mov dword [esi], 0
cmp dword [ecx + 0x34], 0
je 0x10013115
push str.Foreground
mov edx, 1
call fcn.10010540
mov ecx, dword [ebp - 8]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
mov esi, dword [ecx + 0x70]
test eax, eax
je 0x10013115
cmp eax, 1
jne 0x100130ce
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x100130ce
cmp dword [eax + 0x20], 0
je 0x10013115
mov edi, dword [esi]
mov ecx, dword [esi + 4]
cmp edi, ecx
jne 0x100130f9
inc edi
test ecx, ecx
je 0x100130e7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100130ec
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.100240b0
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 + 0x3c]
mov eax, dword [ebx + 0x18]
add dword [ecx + 0x44], eax
mov eax, dword [ebx + 0xc]
add dword [ecx + 0x40], eax
mov edi, dword [ecx + 0x50]
mov eax, dword [ecx + 0x48]
lea ebx, [edi + eax*4]
cmp edi, ebx
je 0x10013155
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1001314b
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [edx + eax - 0xc], 0
jne 0x1001314b
cmp dword [edx + eax - 8], 0
jne 0x1001314b
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10013130
add edi, 4
cmp edi, ebx
jne 0x10013122
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x44]
add dword [ebx + 0xa0], eax
mov eax, dword [ecx + 0x40]
mov ecx, dword [ebp - 0x14]
add dword [ebx + 0xa4], eax
add ecx, 4
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x18]
jne 0x10013002
mov eax, dword [ebx + 0x5dbc]
mov esi, dword [ebx + 0x5dc4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100131a9
cmp dword [esi + 4], 5
jne 0x100131a2
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10013192
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007e2a5
mov esp, ebp
pop ebp
ret