Function at 0x1001a970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a88f4
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x100db774]
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 0x1001ad63
lea eax, [edi + 0xc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.10002800
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 0x1001aa2d
push 0x104
lea ecx, [ebp - 0x23c]
call fcn.10002990
mov esi, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x22c]
cmp dword [esi - 8], 0x104
jl 0x1001adc2
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.1007c7db
add esp, 8
test eax, eax
js 0x1001adc2
cmp eax, dword [esi - 8]
jg 0x1001adc2
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 0x1001ad26
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
call fcn.1000d850
add esp, 8
test eax, eax
jne 0x1001ab28
call fcn.1005c2e0
test eax, eax
je 0x1001ab28
call fcn.1005c2e0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001ab28
call fcn.1005c2e0
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x230], eax
call fcn.100068b0
mov dword [ebp - 0x22c], eax
push 0x100b01b4
push eax
mov byte [ebp - 4], 2
call fcn.1000d460
push esi
push dword [ebp - 0x22c]
call fcn.1000d460
push str._:_calc_md5
push dword [ebp - 0x22c]
call fcn.1000d460
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.100075c0
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.10075330
push 0x104
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000d7e0
add esp, 0x18
test eax, eax
jne 0x1001abe0
call fcn.1005c2e0
test eax, eax
je 0x1001abe0
call fcn.1005c2e0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001abe0
call fcn.1005c2e0
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x230], eax
call fcn.100068b0
mov dword [ebp - 0x22c], eax
push 0x100b01b4
push eax
mov byte [ebp - 4], 3
call fcn.1000d460
push esi
push dword [ebp - 0x22c]
call fcn.1000d460
push str._:_digest_md5
push dword [ebp - 0x22c]
call fcn.1000d460
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.100075c0
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x228]
add eax, 0xfffffffc
push ecx
mov dword [ebp - 0x248], eax
push dword [eax]
call fcn.10085a3a
add esp, 8
test eax, eax
jne 0x1001ad26
call fcn.1005c2e0
test eax, eax
je 0x1001ac8d
call fcn.1005c2e0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1001ac8d
call fcn.1005c2e0
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x230], eax
call fcn.100068b0
mov dword [ebp - 0x22c], eax
push 0x100b01f8
push eax
mov byte [ebp - 4], 4
call fcn.1000d460
push esi
push dword [ebp - 0x22c]
call fcn.1000d460
push 0x100b01fc
push dword [ebp - 0x22c]
call fcn.1000d460
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.100075c0
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 0x1001ad08
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.10002700
lea eax, [edi + 4]
push eax
lea ecx, [esi - 4]
call fcn.10002700
mov eax, dword [ebp - 0x22c]
mov ecx, esi
add eax, esi
push eax
call fcn.10002700
add edi, 0xc
add esi, 0xc
cmp edi, dword [ebp - 0x24c]
jne 0x1001acc0
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.100189e0
mov eax, dword [ebp - 0x238]
add esp, 8
add dword [eax + 0x48], 0xfffffff4
jmp 0x1001ad36
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 0x1001ad52
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 0x1001a9d2
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 0x1001ada3
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.100693bc
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10001a70
int3