Function at 0x1001a8e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9b64
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x238], eax
mov edi, dword [eax + 0x44]
lea ecx, [eax + 0x44]
mov dword [ebp - 0x244], ecx
mov ecx, dword [eax + 0x48]
mov dword [ebp - 4], 0
mov dword [ebp - 0x240], edi
cmp edi, ecx
je 0x1001acd3
lea eax, [edi + 0xc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.10002400
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x23c], esi
mov eax, dword [ebp - 0x234]
mov ecx, 1
sub ecx, dword [esi - 4]
mov byte [ebp - 4], 1
mov edx, dword [eax - 8]
mov eax, dword [esi - 8]
sub eax, 0x104
mov dword [ebp - 0x22c], edx
or eax, ecx
jge 0x1001a99d
push 0x104
lea ecx, [ebp - 0x23c]
call fcn.10002590
mov esi, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x22c]
cmp dword [esi - 8], 0x104
jl 0x1001ad32
push edx
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.1007da0b
add esp, 8
test eax, eax
js 0x1001ad32
cmp eax, dword [esi - 8]
jg 0x1001ad32
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ac96
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
call fcn.1000d460
add esp, 8
test eax, eax
jne 0x1001aa98
call fcn.1005d530
test eax, eax
je 0x1001aa98
call fcn.1005d530
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001aa98
call fcn.1005d530
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x230], eax
call fcn.100064c0
mov dword [ebp - 0x22c], eax
push 0x100b1194
push eax
mov byte [ebp - 4], 2
call fcn.1000d070
push esi
push dword [ebp - 0x22c]
call fcn.1000d070
push str._:_calc_md5
push dword [ebp - 0x22c]
call fcn.1000d070
mov ecx, dword [ebp - 0x230]
add esp, 0x18
mov eax, dword [ecx]
push dword [ebp - 0x22c]
call dword [eax + 0x14]
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 1
call fcn.100071d0
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.10076570
push 0x104
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000d3f0
add esp, 0x18
test eax, eax
jne 0x1001ab50
call fcn.1005d530
test eax, eax
je 0x1001ab50
call fcn.1005d530
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001ab50
call fcn.1005d530
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x230], eax
call fcn.100064c0
mov dword [ebp - 0x22c], eax
push 0x100b1194
push eax
mov byte [ebp - 4], 3
call fcn.1000d070
push esi
push dword [ebp - 0x22c]
call fcn.1000d070
push str._:_digest_md5
push dword [ebp - 0x22c]
call fcn.1000d070
mov ecx, dword [ebp - 0x230]
add esp, 0x18
mov eax, dword [ecx]
push dword [ebp - 0x22c]
call dword [eax + 0x14]
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 1
call fcn.100071d0
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x228]
add eax, 0xfffffffc
push ecx
mov dword [ebp - 0x248], eax
push dword [eax]
call fcn.10086c6a
add esp, 8
test eax, eax
jne 0x1001ac96
call fcn.1005d530
test eax, eax
je 0x1001abfd
call fcn.1005d530
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001abfd
call fcn.1005d530
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x230], eax
call fcn.100064c0
mov dword [ebp - 0x22c], eax
push 0x100b11d8
push eax
mov byte [ebp - 4], 4
call fcn.1000d070
push esi
push dword [ebp - 0x22c]
call fcn.1000d070
push 0x100b11dc
push dword [ebp - 0x22c]
call fcn.1000d070
mov ecx, dword [ebp - 0x230]
add esp, 0x18
mov eax, dword [ecx]
push dword [ebp - 0x22c]
call dword [eax + 0x14]
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 1
call fcn.100071d0
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x230], ecx
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x24c], eax
cmp ecx, eax
je 0x1001ac78
mov esi, dword [ebp - 0x248]
mov eax, ecx
sub eax, edi
mov edi, ecx
mov dword [ebp - 0x22c], eax
nop
push edi
lea ecx, [esi - 8]
call fcn.10002300
lea eax, [edi + 4]
push eax
lea ecx, [esi - 4]
call fcn.10002300
mov eax, dword [ebp - 0x22c]
mov ecx, esi
add eax, esi
push eax
call fcn.10002300
add edi, 0xc
add esi, 0xc
cmp edi, dword [ebp - 0x24c]
jne 0x1001ac30
mov eax, dword [ebp - 0x238]
mov esi, dword [ebp - 0x23c]
mov edi, dword [ebp - 0x240]
mov eax, dword [eax + 0x48]
add eax, 0xfffffff4
push eax
push dword [ebp - 0x244]
call fcn.10018950
mov eax, dword [ebp - 0x238]
add esp, 8
add dword [eax + 0x48], 0xfffffff4
jmp 0x1001aca6
add edi, 0xc
add dword [ebp - 0x234], 0xc
mov dword [ebp - 0x240], edi
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001acc2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0x48]
cmp edi, ecx
jne 0x1001a942
mov eax, dword [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [ebp + 8]
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
neg esi
sbb esi, esi
add eax, 0xfffffff0
neg esi
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001ad13
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10001670
int3