Function at 0x1009d250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5222
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x100cd004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x424], ebx
call fcn.1002bc10
mov ecx, eax
test ecx, ecx
je 0x1009d5f8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push 0x100ab2c0
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.1002b2d0
test al, al
jne 0x1009d2d7
push 0
push 0x100ab2c0
lea ecx, [ebp - 0x428]
call fcn.1002c4c0
mov dword [ebp - 4], 1
call fcn.1002bc10
mov ecx, eax
test ecx, ecx
je 0x1009d602
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
push 0x100ab2c0
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 2
call fcn.1002b2d0
test al, al
jne 0x1009d325
push 0
push 0x100ab2c0
lea ecx, [ebp - 0x42c]
call fcn.1002c4c0
mov edi, dword [ebp + 0xc]
push edi
mov byte [ebp - 4], 3
call fcn.1009daf0
mov esi, dword [0x100df8c4]
mov edx, eax
add esp, 4
mov dword [ebp - 0x424], edx
mov eax, esi
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x1009d36d
nop
cmp dword [ecx + 0x10], edx
jge 0x1009d35a
mov ecx, dword [ecx + 8]
jmp 0x1009d35e
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x1009d350
cmp eax, esi
je 0x1009d36d
cmp edx, dword [eax + 0x10]
jge 0x1009d36f
mov eax, esi
cmp esi, eax
je 0x1009d382
add eax, 0x14
lea ecx, [ebp - 0x42c]
push eax
call fcn.1002ad20
mov esi, dword [ebp - 0x42c]
cmp dword [esi - 0xc], 0
jne 0x1009d3f1
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x430], eax
call fcn.1002b4e0
add eax, 0x10
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov dword [ebx], eax
add esp, 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1009d3c9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x430]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1009d5da
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1009d5da
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1003c6e0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1003c6e0
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
call ebx
test edi, edi
jle 0x1009d452
lea eax, [ebp - 0x420]
push eax
call ebx
sub edi, 1
jne 0x1009d444
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
cmp dword [ebp - 0x424], 3
jne 0x1009d4cb
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x1009d4cb
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x431]
call fcn.1009b750
push dword [eax]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x424]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009d4cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x1009d57d
call fcn.1002bc10
mov ecx, eax
test ecx, ecx
je 0x1009d60c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x424]
call fcn.1002b2d0
test al, al
jne 0x1009d542
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009d520
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.1002c4c0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.10039de0
mov edx, dword [ebp - 0x424]
add esp, 8
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009d57d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x424], eax
call fcn.1002b4e0
mov ebx, dword [ebp - 0x430]
add eax, 0x10
add esi, 0xfffffff0
mov byte [ebp - 4], 1
add esp, 4
mov dword [ebx], eax
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1009d5bb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1009d5da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023eda
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1002a68c
push 0x80004005
call fcn.1002a68c
push 0x80004005
call fcn.1002a68c
int3