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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [0x100a9f28]
push esi
push edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebp + 0x3de4]
cmp eax, dword [ebp + 0x3de0]
je 0x10018474
call fcn.100180e0
mov eax, dword [ebp + 0x3de0]
cmp dword [ebp + 0x3de8], eax
je 0x1001889a
mov dword [ebp + 0x3de8], eax
mov dword [ebp + 0xa8], 0
mov eax, dword [ebp + 0x5ab0]
mov esi, dword [ebp + 0x5ab8]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100184c7
nop dword [eax]
cmp dword [esi + 4], 4
jne 0x100184c0
mov eax, dword [esi + 0xc]
push esi
push ebp
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x100184b0
call fcn.10017e30
mov ebx, dword [ebp + 0x47ec]
mov eax, dword [ebp + 0x47e4]
lea eax, [ebx + eax*4]
mov dword [esp + 0x18], eax
cmp ebx, eax
je 0x100185d1
nop word [eax + eax]
mov esi, dword [ebx]
mov eax, dword [0x100a9f28]
lea ebp, [esi + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], eax
mov ecx, dword [ebp + 4]
test ecx, ecx
jns 0x10018526
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, ebp
call fcn.10028240
mov dword [ebp], 0
mov ebp, dword [esi + 0x74]
mov ecx, dword [ebp + 4]
test ecx, ecx
jns 0x1001854f
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, ebp
call fcn.10028240
mov dword [ebp], 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 + 0x58], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x5c], eax
mov eax, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], esi
cmp dword [esi + 0x30], 0
je 0x100185c0
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10015f20
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x38]
add esp, 4
push eax
call fcn.10033760
add esp, 4
add ebx, 4
cmp ebx, dword [esp + 0x18]
jne 0x100184f0
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x495c]
test eax, eax
je 0x100185f6
test dword [eax + 0xc], 0x2000
jne 0x100185f6
mov edi, dword [eax + 0x300]
mov ebx, dword [ebp + 0x4964]
mov dword [esp + 0x1c], edi
jmp 0x1001860a
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x10018608
mov ebx, dword [ebp + 0x4964]
jmp 0x1001860a
xor ebx, ebx
mov esi, dword [ebp + 0x3e20]
mov eax, dword [ebp + 0x3e18]
mov dword [esp + 0x20], ebx
lea ebp, [esi + eax*4]
cmp esi, ebp
je 0x1001865a
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x10018653
cmp byte [ecx + 0xb1], 0
jne 0x10018653
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10018653
cmp ecx, edi
je 0x10018653
cmp ecx, ebx
je 0x10018653
shr edx, 0x19
and edx, 1
call fcn.10017ac0
add esi, 4
cmp esi, ebp
jne 0x10018621
xor esi, esi
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x10018688
cmp byte [ecx + 0xaa], 0
je 0x10018688
cmp byte [ecx + 0xb1], 0
jne 0x10018688
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.10017ac0
inc esi
cmp esi, 2
jl 0x10018660
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x44], 0
je 0x100186c2
mov ecx, dword [ebx + 0x4ac8]
cmp ecx, 0xffffffff
je 0x100186c2
push dword [ebx + 0xdc0]
movss xmm0, dword [ebx + 0x3854]
push dword [ebx + 0xdbc]
sub esp, 8
call fcn.10014710
add esp, 0x10
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov ecx, dword [ebx + 0x47ec]
mov eax, dword [ebx + 0x47e4]
mov dword [esp + 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x1001886d
mov ebp, dword [ecx]
mov ebx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [ebx + 4]
add esi, ecx
mov dword [esp + 0x18], ecx
cmp esi, edi
jle 0x10018737
test edi, edi
je 0x1001871f
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x10018724
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.10028240
mov ecx, dword [esp + 0x18]
mov dword [ebx], esi
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x10018780
shl eax, 2
push eax
mov eax, dword [ebp + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ecx*4]
push eax
call fcn.1004c810
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1001877a
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.10028240
mov dword [esi], 0
cmp dword [ebp + 0x34], 0
je 0x100187fd
push str.Foreground
mov edx, 1
mov ecx, ebp
call fcn.10015f20
mov esi, dword [ebp + 0x70]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x100187fd
cmp eax, 1
jne 0x100187b9
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x100187b9
cmp dword [eax + 0x20], 0
je 0x100187fd
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
cmp ebx, ecx
jne 0x100187e4
inc ebx
test ecx, ecx
je 0x100187d2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100187d7
mov eax, 8
cmp eax, ebx
mov ecx, esi
cmovg ebx, eax
push ebx
call fcn.10028240
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [ebp + 0x3c]
mov eax, dword [edi + 0x18]
add dword [ebp + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [ebp + 0x40], eax
mov edi, dword [ebp + 0x50]
mov eax, dword [ebp + 0x48]
lea ebx, [edi + eax*4]
cmp edi, ebx
je 0x10018842
nop word [eax + eax]
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1001883b
lea eax, [ecx + ecx*4]
shl eax, 3
nop
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x1001883b
cmp dword [eax + edx - 8], 0
jne 0x1001883b
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10018820
add edi, 4
cmp edi, ebx
jne 0x10018810
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 0x44]
mov ecx, dword [esp + 0x14]
add ecx, 4
add dword [ebx + 0xa0], eax
mov eax, dword [ebp + 0x40]
add dword [ebx + 0xa4], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x1c]
jne 0x100186f5
mov eax, dword [ebx + 0x5ab0]
mov esi, dword [ebx + 0x5ab8]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1001889a
cmp dword [esi + 4], 5
jne 0x10018893
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10018883
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret