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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [0x4e5fbc]
push esi
push edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebp + 0x3de4]
cmp eax, dword [ebp + 0x3de0]
je 0x416864
call fcn.004164d0
mov eax, dword [ebp + 0x3de0]
cmp dword [ebp + 0x3de8], eax
je 0x416c8a
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 0x4168b7
nop dword [eax]
cmp dword [esi + 4], 4
jne 0x4168b0
mov eax, dword [esi + 0xc]
push esi
push ebp
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x4168a0
call fcn.00416220
mov ebx, dword [ebp + 0x47ec]
mov eax, dword [ebp + 0x47e4]
lea eax, [ebx + eax*4]
mov dword [esp + 0x18], eax
cmp ebx, eax
je 0x4169c1
nop word [eax + eax]
mov esi, dword [ebx]
mov eax, dword [0x4e5fbc]
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 0x416916
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.00427b10
mov dword [ebp], 0
mov ebp, dword [esi + 0x74]
mov ecx, dword [ebp + 4]
test ecx, ecx
jns 0x41693f
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.00427b10
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 0x4169b0
push str.Background
xor edx, edx
mov ecx, esi
call fcn.00414290
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x38]
add esp, 4
push eax
call fcn.00436ff0
add esp, 4
add ebx, 4
cmp ebx, dword [esp + 0x18]
jne 0x4168e0
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x495c]
test eax, eax
je 0x4169e6
test dword [eax + 0xc], 0x2000
jne 0x4169e6
mov edi, dword [eax + 0x300]
mov ebx, dword [ebp + 0x4964]
mov dword [esp + 0x1c], edi
jmp 0x4169fa
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x4169f8
mov ebx, dword [ebp + 0x4964]
jmp 0x4169fa
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 0x416a4a
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x416a43
cmp byte [ecx + 0xb1], 0
jne 0x416a43
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x416a43
cmp ecx, edi
je 0x416a43
cmp ecx, ebx
je 0x416a43
shr edx, 0x19
and edx, 1
call fcn.00415e30
add esi, 4
cmp esi, ebp
jne 0x416a11
xor esi, esi
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x416a78
cmp byte [ecx + 0xaa], 0
je 0x416a78
cmp byte [ecx + 0xb1], 0
jne 0x416a78
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.00415e30
inc esi
cmp esi, 2
jl 0x416a50
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x44], 0
je 0x416ab2
mov ecx, dword [ebx + 0x4ac8]
cmp ecx, 0xffffffff
je 0x416ab2
push dword [ebx + 0xdc0]
movss xmm0, dword [ebx + 0x3854]
push dword [ebx + 0xdbc]
sub esp, 8
call fcn.00411d70
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 0x416c5d
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 0x416b27
test edi, edi
je 0x416b0f
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x416b14
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.00427b10
mov ecx, dword [esp + 0x18]
mov dword [ebx], esi
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x416b70
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.00468db0
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x416b6a
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.00427b10
mov dword [esi], 0
cmp dword [ebp + 0x34], 0
je 0x416bed
push str.Foreground
mov edx, 1
mov ecx, ebp
call fcn.00414290
mov esi, dword [ebp + 0x70]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x416bed
cmp eax, 1
jne 0x416ba9
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x416ba9
cmp dword [eax + 0x20], 0
je 0x416bed
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
cmp ebx, ecx
jne 0x416bd4
inc ebx
test ecx, ecx
je 0x416bc2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x416bc7
mov eax, 8
cmp eax, ebx
mov ecx, esi
cmovg ebx, eax
push ebx
call fcn.00427b10
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 0x416c32
nop word [eax + eax]
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x416c2b
lea eax, [ecx + ecx*4]
shl eax, 3
nop
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x416c2b
cmp dword [eax + edx - 8], 0
jne 0x416c2b
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x416c10
add edi, 4
cmp edi, ebx
jne 0x416c00
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 0x416ae5
mov eax, dword [ebx + 0x5ab0]
mov esi, dword [ebx + 0x5ab8]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x416c8a
cmp dword [esi + 4], 5
jne 0x416c83
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x416c73
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret