Function at 0x440000
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45b020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x2c]
lea edi, [esi + 0x14]
cmp eax, ecx
mov dword [esp + 0x24], 0
je 0x440078
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x440048
mov edx, dword [0x4631a4]
add eax, 0xfffffff4
cmp eax, edx
jne 0x44004f
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x44005d
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, edi
call fcn.00408770
jmp 0x440074
mov ecx, edi
call fcn.00405b60
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4400bb
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4631a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4400b4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4400b4
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
xor eax, eax
jmp 0x440322
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.main
call fcn.0042a190
push ecx
mov byte [esp + 0x30], 1
mov ecx, esp
mov dword [esp + 0x20], esp
push str.POPWINMGR
call fcn.004171e0
mov ecx, esi
mov byte [esp + 0x30], 0
call fcn.0043f1b0
push ecx
mov dword [esi + 0x18], eax
mov eax, dword [0x4631a0]
mov edi, esp
mov ecx, 0x46745c
mov dword [esp + 0x18], esp
test ecx, ecx
mov dword [edi], eax
je 0x44013e
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x44013e
push ebp
mov ecx, edi
call fcn.00404720
test eax, eax
je 0x44013e
mov edx, dword [edi]
inc ebp
push ebp
push 0x46745c
push edx
call fcn.0042b310
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.004055c0
push ecx
mov byte [esp + 0x2c], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push str.POPWINMGR
call fcn.004171e0
lea eax, [esp + 0x18]
mov ecx, esi
push eax
mov byte [esp + 0x30], 0
call fcn.0043efd0
mov edi, eax
mov ecx, dword [esi + 0xc]
mov eax, dword [edi]
lea ebx, [esi + 0xc]
cmp ecx, eax
mov byte [esp + 0x24], 3
je 0x4401b6
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x44018c
mov edx, dword [0x4631a4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x440193
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4401a1
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, ebx
call fcn.00408770
jmp 0x4401b6
mov ecx, ebx
call fcn.00405b60
mov edi, dword [edi]
mov dword [ebx], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4631a4]
mov byte [esp + 0x24], 0
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4401ea
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4401ea
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0044bf22
add esp, 4
push ecx
mov ecx, dword [0x4631a0]
mov ebp, esp
mov edx, 0x467458
test edx, edx
mov dword [esp + 0x1c], esp
mov dword [ebp], ecx
je 0x440238
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x440238
push edi
mov ecx, ebp
call fcn.00404720
test eax, eax
je 0x440238
mov eax, dword [ebp]
inc edi
push edi
push 0x467458
push eax
call fcn.0042b310
add esp, 0xc
mov ecx, ebp
push 0xffffffffffffffff
call fcn.004055c0
push ecx
mov byte [esp + 0x2c], 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.POPWINMGR
call fcn.004171e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
push ecx
mov ecx, esi
call fcn.0043efd0
mov ebp, eax
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp]
lea edi, [esi + 0x10]
cmp ecx, eax
mov byte [esp + 0x24], 5
je 0x4402b2
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x440287
mov edx, dword [0x4631a4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x44028e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x44029c
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, edi
call fcn.00408770
jmp 0x4402b2
mov ecx, edi
call fcn.00405b60
mov ebp, dword [ebp]
mov dword [edi], ebp
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4631a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4402e1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4402e1
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x44030f
mov eax, dword [ebx]
mov eax, dword [eax - 8]
test eax, eax
jne 0x4402fe
mov ecx, dword [edi]
mov edx, dword [ecx - 8]
test edx, edx
je 0x440307
test eax, eax
je 0x44030f
mov edx, dword [edi]
mov eax, dword [edx - 8]
test eax, eax
je 0x44030f
mov dword [esi], 1
jmp 0x440315
mov dword [esi], 0
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
call fcn.00401c80
mov eax, esi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4