Function at 0x1001aa50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9ce4
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x100db55c]
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 0x1001ae43
lea eax, [edi + 0xc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.100025a0
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 0x1001ab0d
push 0x104
lea ecx, [ebp - 0x23c]
call fcn.10002730
mov esi, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x22c]
cmp dword [esi - 8], 0x104
jl 0x1001aea2
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.1007dbae
add esp, 8
test eax, eax
js 0x1001aea2
cmp eax, dword [esi - 8]
jg 0x1001aea2
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 0x1001ae06
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
call fcn.1000d5f0
add esp, 8
test eax, eax
jne 0x1001ac08
call fcn.1005d6c0
test eax, eax
je 0x1001ac08
call fcn.1005d6c0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001ac08
call fcn.1005d6c0
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x230], eax
call fcn.10006650
mov dword [ebp - 0x22c], eax
push 0x100b11a4
push eax
mov byte [ebp - 4], 2
call fcn.1000d200
push esi
push dword [ebp - 0x22c]
call fcn.1000d200
push str._:_calc_md5
push dword [ebp - 0x22c]
call fcn.1000d200
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.10007360
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.10076710
push 0x104
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000d580
add esp, 0x18
test eax, eax
jne 0x1001acc0
call fcn.1005d6c0
test eax, eax
je 0x1001acc0
call fcn.1005d6c0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001acc0
call fcn.1005d6c0
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x230], eax
call fcn.10006650
mov dword [ebp - 0x22c], eax
push 0x100b11a4
push eax
mov byte [ebp - 4], 3
call fcn.1000d200
push esi
push dword [ebp - 0x22c]
call fcn.1000d200
push str._:_digest_md5
push dword [ebp - 0x22c]
call fcn.1000d200
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.10007360
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x228]
add eax, 0xfffffffc
push ecx
mov dword [ebp - 0x248], eax
push dword [eax]
call fcn.10086e0a
add esp, 8
test eax, eax
jne 0x1001ae06
call fcn.1005d6c0
test eax, eax
je 0x1001ad6d
call fcn.1005d6c0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001ad6d
call fcn.1005d6c0
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x230], eax
call fcn.10006650
mov dword [ebp - 0x22c], eax
push 0x100b11e8
push eax
mov byte [ebp - 4], 4
call fcn.1000d200
push esi
push dword [ebp - 0x22c]
call fcn.1000d200
push 0x100b11ec
push dword [ebp - 0x22c]
call fcn.1000d200
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.10007360
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 0x1001ade8
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.100024a0
lea eax, [edi + 4]
push eax
lea ecx, [esi - 4]
call fcn.100024a0
mov eax, dword [ebp - 0x22c]
mov ecx, esi
add eax, esi
push eax
call fcn.100024a0
add edi, 0xc
add esi, 0xc
cmp edi, dword [ebp - 0x24c]
jne 0x1001ada0
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.10018ac0
mov eax, dword [ebp - 0x238]
add esp, 8
add dword [eax + 0x48], 0xfffffff4
jmp 0x1001ae16
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 0x1001ae32
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 0x1001aab2
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 0x1001ae83
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.1006a7ac
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10001810
int3