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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [0x100a93e8]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x3f0c]
cmp eax, dword [ebx + 0x3f08]
je 0x10013155
call fcn.10012dc0
mov eax, dword [ebx + 0x3f08]
cmp dword [ebx + 0x3f10], eax
je 0x100135d9
mov dword [ebx + 0x3f10], eax
mov dword [ebx + 0xa8], 0
mov eax, dword [ebx + 0x5df4]
mov esi, dword [ebx + 0x5dfc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100131a7
nop dword [eax]
cmp dword [esi + 4], 4
jne 0x100131a0
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10013190
call fcn.10012820
mov ecx, dword [ebx + 0x4a34]
mov eax, dword [ebx + 0x4a2c]
mov dword [ebp - 4], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x10], eax
cmp ecx, eax
je 0x10013306
nop dword [eax]
mov esi, dword [ecx]
mov ebx, dword [0x100a93e8]
lea edi, [esi + 0x4c]
lea eax, [esi + 0x7c]
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], eax
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10013203
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.10025780
mov dword [edi], 0
mov edi, dword [esi + 0x78]
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1001322b
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.10025780
mov dword [edi], 0
mov byte [esi + 0x3c], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], esi
cmp dword [esi + 0x34], 0
je 0x100132f1
push str.Background
xor edx, edx
mov ecx, esi
call fcn.100108f0
mov edi, dword [esi + 0x74]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x100132f1
cmp eax, 1
jne 0x100132a7
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x100132a7
cmp dword [eax + 0x20], 0
je 0x100132f1
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, ecx
jne 0x100132d8
inc edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x100132c6
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
sar eax, 1
add eax, ecx
jmp 0x100132cb
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.10025780
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
inc dword [esi + 0x40]
mov eax, dword [ebx + 0x18]
add dword [esi + 0x48], eax
mov eax, dword [ebx + 0xc]
add dword [esi + 0x44], eax
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp - 0x10]
jne 0x100131d0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x4c00]
test eax, eax
je 0x1001332a
test dword [eax + 0xc], 0x2000
jne 0x1001332a
mov edi, dword [eax + 0x30c]
mov ebx, dword [ebx + 0x4c08]
mov dword [ebp - 0x18], edi
jmp 0x1001333d
xor edi, edi
mov dword [ebp - 0x18], edi
test eax, eax
je 0x1001333b
mov ebx, dword [ebx + 0x4c08]
jmp 0x1001333d
xor ebx, ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov esi, dword [eax + 0x3f48]
mov eax, dword [eax + 0x3f40]
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x1001339c
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xae], 0
je 0x10013395
cmp byte [ecx + 0xb5], 0
jne 0x10013395
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10013395
cmp ecx, edi
je 0x10013395
cmp ecx, ebx
je 0x10013395
shr edx, 0x19
and edx, 1
call fcn.10012430
mov eax, dword [ebp - 0x10]
add esi, 4
cmp esi, eax
jne 0x10013360
xor esi, esi
nop
mov ecx, dword [ebp + esi*4 - 0x18]
test ecx, ecx
je 0x100133c8
cmp byte [ecx + 0xae], 0
je 0x100133c8
cmp byte [ecx + 0xb5], 0
jne 0x100133c8
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.10012430
inc esi
cmp esi, 2
jl 0x100133a0
mov ebx, dword [ebp - 8]
cmp byte [ebx + 0x44], 0
je 0x10013401
mov ecx, dword [ebx + 0x4d84]
cmp ecx, 0xffffffff
je 0x10013401
push dword [ebx + 0xe04]
movss xmm0, dword [ebx + 0x397c]
push dword [ebx + 0xe00]
sub esp, 8
call fcn.1000e4f0
add esp, 0x10
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov ecx, dword [ebx + 0x4a34]
mov eax, dword [ebx + 0x4a2c]
mov dword [ebp - 0xc], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], eax
cmp ecx, eax
je 0x100135ac
mov ecx, dword [ecx]
mov dword [ebp - 4], ecx
mov ebx, dword [ecx + 0x74]
mov eax, dword [ecx + 0x78]
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 0x10013478
test edi, edi
je 0x1001345e
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x10013463
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.10025780
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ebx], esi
mov esi, dword [ecx + 0x78]
mov eax, dword [esi]
test eax, eax
je 0x100134c4
shl eax, 2
push eax
mov eax, dword [ecx + 0x74]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x100134bb
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.10025780
mov ecx, dword [ebp - 4]
mov dword [esi], 0
cmp dword [ecx + 0x38], 0
je 0x10013545
push str.Foreground
mov edx, 1
call fcn.100108f0
mov ecx, dword [ebp - 4]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
mov esi, dword [ecx + 0x74]
test eax, eax
je 0x10013545
cmp eax, 1
jne 0x100134fe
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x100134fe
cmp dword [eax + 0x20], 0
je 0x10013545
mov edi, dword [esi]
mov ecx, dword [esi + 4]
cmp edi, ecx
jne 0x10013529
inc edi
test ecx, ecx
je 0x10013517
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001351c
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.10025780
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebx
mov ecx, dword [ebp - 4]
inc dword [esi]
inc dword [ecx + 0x40]
mov eax, dword [ebx + 0x18]
add dword [ecx + 0x48], eax
mov eax, dword [ebx + 0xc]
add dword [ecx + 0x44], eax
mov edi, dword [ecx + 0x54]
mov eax, dword [ecx + 0x4c]
lea ebx, [edi + eax*4]
cmp edi, ebx
je 0x10013585
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1001357b
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x1001357b
cmp dword [eax + edx - 8], 0
jne 0x1001357b
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10013560
add edi, 4
cmp edi, ebx
jne 0x10013552
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x48]
add dword [ebx + 0xa0], eax
mov eax, dword [ecx + 0x44]
mov ecx, dword [ebp - 0xc]
add dword [ebx + 0xa4], eax
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x14]
jne 0x10013432
mov eax, dword [ebx + 0x5df4]
mov esi, dword [ebx + 0x5dfc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100135d9
cmp dword [esi + 4], 5
jne 0x100135d2
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x100135c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret