Function at 0x10046bd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2862
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi], 0
mov dword [ebp - 0x488], esi
je 0x10046e00
xor edi, edi
mov dword [ebp - 0x470], edi
nop word [eax + eax]
test edi, edi
jne 0x10046e00
push 0x1388
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10046c44
mov edi, 1
jmp 0x10046c14
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100a3d80
add esp, 0xc
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10046e1e
push 0x250
lea eax, [ebp - 0x46c]
push 0
push eax
call fcn.100a3d80
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10046e39
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x450]
xor dl, dl
mov ecx, dword [ebp - 0x44c]
xor ebx, ebx
cmp dword [esi + 0x34], eax
jne 0x10046cf3
cmp dword [esi + 0x30], ecx
jne 0x10046cf3
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp - 0x454]
jne 0x10046cf3
mov eax, dword [esi + 0x24]
cmp eax, dword [ebp - 0x458]
je 0x10046cfa
mov dl, 1
mov ebx, 3
mov eax, dword [ebp - 0x46c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x468]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x464]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x460]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x45c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x458]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x454]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x450]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ecx
test dl, dl
je 0x10046dd6
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [ebp - 0x484], ecx
mov ecx, dword [0x1011408c]
mov dword [ebp - 0x480], eax
test ecx, ecx
jne 0x10046dc9
push 0x1010f0d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1011408c], 0
jne 0x10046db2
push 0x24
call fcn.1007d4b8
add esp, 4
mov dword [ebp - 0x48c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10046da0
mov ecx, eax
call fcn.10049370
mov ecx, eax
jmp 0x10046da2
xor ecx, ecx
mov byte [ebp - 4], 0
xchg dword [ebp - 0x47c], eax
mov dword [0x1011408c], ecx
push 0x1010f0d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x1011408c]
mov eax, dword [ebp - 0x480]
push ebx
push eax
push dword [ebp - 0x484]
call fcn.100495e0
mov dword [ebp - 4], 0xffffffff
jmp 0x10046c20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret
push 0x10102d7c
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0xffffffff
push eax
call fcn.100a3eda
push 0x10102d7c
lea eax, [ebp - 0x478]
mov dword [ebp - 0x478], 0xfffffffe
push eax
call fcn.100a3eda
int3