Function at 0x439ce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b7eec
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x20], ebp
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 1
mov dword [esp + 0x50], ebx
cmp dword [0x4e98dc], ebx
jne 0x439e9b
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp byte [0x4e98e0], bl
jne 0x439d6e
lea eax, [esp + 0x24]
push str.safemonPopWndTracker.exe
push eax
call fcn.0047b079
mov eax, dword [eax]
add esp, 8
push eax
mov ebx, 1
call esi
mov byte [esp + 0x1b], bl
test eax, eax
je 0x439d73
mov byte [esp + 0x1b], 0
test bl, 1
je 0x439d98
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x439dc4
call fcn.004460e0
cmp dword [eax + 0x50], 0
je 0x439dbd
mov ecx, dword [eax + 0x54]
push 0
push 0
push 0x40e
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov byte [0x4e98e0], 1
lea edx, [esp + 0x1c]
push 0x4c942c
push edx
call fcn.0047b079
add esp, 8
mov byte [esp + 0x50], 1
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x439e0f
push edi
call esi
test eax, eax
je 0x439e0f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0047ea6b
add esp, 4
test eax, eax
jne 0x439e06
call fcn.0040cff0
test eax, eax
je 0x439e0f
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x439e11
xor eax, eax
mov dword [0x4e98dc], eax
test eax, eax
je 0x439e35
push str.QueryInterface
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x439e35
lea ecx, [ebp + 0x20]
push ecx
push 0x4c5d0c
call eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x439e76
mov edx, dword [eax]
push eax
mov eax, dword [edx]
call eax
test eax, eax
jge 0x439e76
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439e6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x43a136
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x439e9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x20], 0
je 0x439e6c
mov edi, dword [ebp + 0x34]
add ebp, 0x24
cmp dword [ebp + 0xc], edi
jbe 0x439eb1
call fcn.00490387
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x439ec1
call fcn.00490387
mov eax, dword [ebp]
push edi
push ebx
push esi
push eax
lea edx, [esp + 0x4c]
push edx
mov edi, ebp
call fcn.0044e740
mov ebp, dword [esp + 0x20]
mov esi, dword [ebp + 0x4c]
add ebp, 0x3c
cmp dword [ebp + 0xc], esi
jbe 0x439ee8
call fcn.00490387
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp]
cmp edi, dword [ebp + 0x10]
jbe 0x439ef8
call fcn.00490387
mov eax, dword [ebp]
push esi
push ebx
push edi
push eax
lea eax, [esp + 0x4c]
push eax
mov edi, ebp
call fcn.0044e740
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 2
test byte [0x4ea4d4], 1
jne 0x439f4d
or dword [0x4ea4d4], 1
mov byte [esp + 0x50], bl
call fcn.00430140
push 0x4bf1d0
call fcn.00490884
add esp, 4
mov byte [esp + 0x50], 0
push 0x4e9ff0
call fcn.00430640
test eax, eax
je 0x439f64
push 0x1f4
call esi
jmp 0x439f22
push 1
lea eax, [edi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x43a131
test byte [0x4ea4d4], 1
jne 0x439fa6
or dword [0x4ea4d4], 1
mov byte [esp + 0x50], 3
call fcn.00430140
push 0x4bf1d0
call fcn.00490884
add esp, 4
mov byte [esp + 0x50], 0
mov ecx, dword [edi + 0x20]
push ecx
push 0x4e9ff0
call fcn.00430ef0
mov eax, dword [edi + 0x20]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test eax, eax
jl 0x439e6c
mov eax, dword [edi + 0x20]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x43a131
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], esi
jle 0x43a11f
push 1
push 1
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x43a11f
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x43a10c
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x43a10c
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
sub eax, 1
je 0x43a0a4
sub eax, 1
jne 0x43a10c
push 0x4e74e0
push 0x30
call fcn.00490df2
add esp, 8
cmp eax, ebx
je 0x43a05d
call fcn.00439710
jmp 0x43a05f
xor eax, eax
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0043aee0
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x43a09e
mov esi, dword [esp + 0x1c]
call fcn.004397a0
test eax, eax
je 0x43a09e
lea ebx, [esp + 0x34]
add edi, 0x24
call fcn.0043aa80
mov edi, dword [esp + 0x20]
xor ebx, ebx
lea eax, [esp + 0x34]
jmp 0x43a102
push 0x4e74e0
push 0x30
call fcn.00490df2
add esp, 8
cmp eax, ebx
je 0x43a0be
call fcn.00439710
jmp 0x43a0c0
xor eax, eax
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.0043aee0
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x43a0fe
mov esi, dword [esp + 0x1c]
call fcn.004397a0
test eax, eax
je 0x43a0fe
lea ebx, [esp + 0x3c]
mov edi, ebp
call fcn.0043aa80
mov edi, dword [esp + 0x20]
xor ebx, ebx
lea eax, [esp + 0x3c]
mov byte [esp + 0x50], 0
call fcn.0043af80
mov esi, dword [esp + 0x24]
inc esi
cmp esi, dword [esp + 0x28]
mov dword [esp + 0x24], esi
jl 0x439ff2
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x43a13e
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4