Function at 0x1002ea90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e3550
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1025e344]
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, ecx
mov dword [ebp - 0x5c], 0
call fcn.10048df0
test eax, eax
jne 0x1002ee6c
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x1002eb05
push 0x3c
call fcn.100cff51
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1002eaf9
mov ecx, eax
call fcn.100aaa60
jmp 0x1002eafb
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x18], eax
mov byte [eax + 8], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp edi, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], edi
je 0x1002edee
lea eax, [ebp - 0x44]
mov dword [ebp - 0x58], eax
lea esi, [ebx + 0x1c]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 3
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x40]
call fcn.10018090
mov byte [ebp - 4], 4
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10018090
mov dword [ebp - 4], 6
lea eax, [ebp - 0x44]
push eax
call fcn.1000a0a0
add esp, 4
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.100079d0
lea ecx, [esi + 4]
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x1002eba4
cmp dword [ebp - 0x2c], 0x10
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10014280
lea ecx, [esi + 0x1c]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x1002ebbf
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10014280
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x54]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x58], esp
mov dword [ebp - 0x74], esi
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 9
mov byte [ebp - 4], 7
call fcn.100088d0
mov edi, dword [ebp - 0x54]
add esp, 8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], eax
cmp edi, eax
je 0x1002ed2c
nop dword [eax]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.100041a0
add esp, 4
mov dword [ebp - 0x70], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 0xb
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002ed01
mov edi, dword [ebx + 0x1c]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x1002ec9d
cmp dword [edi + 0xc], 0
jl 0x1002ec91
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x1002ec91
push ecx
call fcn.100041a0
add esp, 4
mov dword [ebp - 0x68], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002ec89
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x68]
add eax, 0x10
mov dword [ebx + 0x1c], eax
jmp 0x1002ec9d
push dword [esi - 0xc]
lea ecx, [ebx + 0x1c]
push esi
call fcn.10006ab0
cmp dword [ebx + 0x34], 0x10
lea ecx, [ebx + 0x20]
jb 0x1002eca8
mov ecx, dword [ecx]
lea eax, [ebx + 0x50]
push eax
push 0x10200948
push ecx
call fcn.100819e0
lea ecx, [ebx + 0x38]
add esp, 0xc
cmp dword [ecx + 0x14], 0x10
jb 0x1002ecc5
mov ecx, dword [ecx]
lea eax, [ebx + 0x5c]
push eax
push 0x10200948
push ecx
call fcn.100819e0
add esp, 8
mov edi, esp
mov dword [ebp - 0x68], esp
mov dword [ebp - 0x7c], edi
push dword [ebp - 0x70]
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xb
mov ecx, ebx
call fcn.1002e4b0
mov edi, dword [ebp - 0x60]
mov byte [ebp - 4], 7
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002ed1d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
mov dword [ebp - 0x60], edi
cmp edi, dword [ebp - 0x58]
jne 0x1002ec20
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1002ed96
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0x50]
push eax
call fcn.10007490
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ed77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ee88
push edx
push ecx
call fcn.100cff81
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.10007910
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x40]
call fcn.10007910
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002ede0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x64]
add edi, 0x34
cmp edi, dword [ebp - 0x6c]
jmp 0x1002eb22
mov ecx, dword [ebx + 0x18]
lea eax, [ebp - 0x54]
push eax
call fcn.1002a370
mov dword [ebp - 4], 0x14
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov dword [ebp - 0x5c], 1
test ecx, 0xfffffffc
je 0x1002ee24
mov ecx, ebx
call fcn.10048df0
mov byte [ebp - 0x45], 1
test eax, eax
je 0x1002ee28
mov byte [ebp - 0x45], 0
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x54]
and eax, 0xfffffffe
mov dword [ebp - 0x5c], eax
call fcn.10019380
cmp byte [ebp - 0x45], 0
je 0x1002ee58
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x18]
mov dword [ecx + 0x40], eax
jmp 0x1002ee6c
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x1002ee65
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x18], 0
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.100d02f2
mov esp, ebp
pop ebp
ret
call fcn.101a3dde
int3