Function at 0x1000c090
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1006bdc5
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x100810f0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x130]
xor ebx, ebx
lea ecx, [esp + 0x54]
mov dword [esp + 0x128], ebx
call fcn.1004dfc0
push ebx
mov byte [esp + 0x12c], 1
mov eax, dword [esp + 0x138]
push 0x377
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x64]
call fcn.1004e460
mov ecx, eax
call fcn.1004bf20
test al, al
jne 0x1000c158
lea ecx, [esp + 0x54]
mov byte [esp + 0x128], bl
call fcn.1004dfe0
mov dword [esp + 0x128], 0xffffffff
mov eax, dword [esp + 0x134]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000c151
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x1000c509
push str.FileMappings
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x5c]
call fcn.1004bf30
lea ecx, [esp + 0x24]
call fcn.1004bf20
test al, al
jne 0x1000c113
mov ecx, dword [ebp + 0x44]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
lea esi, [ebp + 4]
push eax
mov ecx, esi
call fcn.1000a760
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ecx + 4]
lea esi, [ebp + 0x24]
push edx
mov ecx, esi
call fcn.1000a760
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
push str.Mapping
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.1004bf30
lea ecx, [esp + 0x18]
call fcn.1004bf10
test eax, eax
je 0x1000c4bf
mov edx, dword [0x100829cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x100829cc
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x128], 2
mov edx, dword [0x100829cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x100829cc
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push str.SourceFile
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 3
call fcn.1004bfb0
mov ecx, eax
call fcn.1004bee0
mov ebx, eax
lea eax, [esp + 0x20]
call fcn.10003180
push str.DestFile
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
call fcn.1004bf30
lea ecx, [esp + 0x1c]
call fcn.1004bf10
test eax, eax
je 0x1000c2af
lea ecx, [esp + 0x1c]
call fcn.1004c0b0
mov ebx, eax
lea eax, [esp + 0x14]
call fcn.10003180
push str.DestFile
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
call fcn.1004c030
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
call fcn.1004bf10
test eax, eax
jne 0x1000c275
mov edx, dword [esp + 0x20]
cmp dword [edx - 0xc], 0
je 0x1000c443
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x1000c443
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x1007ae74
call fcn.100026d0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
mov ebx, ebp
mov byte [esp + 0x130], 4
call fcn.10009900
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ebx, str.0.8.4
mov byte [esp + 0x138], 5
call fcn.10005fb0
push eax
lea edx, [esp + 0x40]
push edx
mov ebx, 0x1007a234
mov byte [esp + 0x140], 6
call fcn.10005fb0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x50]
push edx
mov ebx, eax
mov byte [esp + 0x148], 7
call fcn.10009900
mov eax, dword [eax]
add esp, 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c36a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x128], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c392
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x128], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c3ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x128], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c3e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x128], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c40a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x1000c443
lea ecx, [esp + 0x20]
push ecx
lea edi, [ebp + 4]
call fcn.10009c80
mov edi, eax
lea eax, [esp + 0x14]
call fcn.10003200
lea edi, [esp + 0x20]
call fcn.100029b0
push eax
lea edi, [ebp + 0x24]
call fcn.10009c80
mov edi, eax
lea eax, [esp + 0x14]
call fcn.10003200
mov byte [esp + 0x128], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000c46b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x128], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Mapping
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.1004c030
mov edx, dword [eax]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.1004bf10
test eax, eax
jne 0x1000c1f2
xor ebx, ebx
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
lea ecx, [esp + 0x54]
mov byte [esp + 0x128], bl
call fcn.1004dfe0
mov dword [esp + 0x128], 0xffffffff
mov eax, dword [esp + 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c507
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1004ea1f
add esp, 0x118
ret 8