Function at 0x40d9c0
Capabilities:
Check if file exists
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, ecx
mov ebx, edx
push esi
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x164], ebx
call edi
test eax, eax
je 0x40db8e
push ebx
call edi
test eax, eax
je 0x40dbd0
push 3
xor eax, eax
push esi
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push edx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x158], 0x67452301
mov dword [ebp - 0x154], 0xefcdab89
mov dword [ebp - 0x150], 0x98badcfe
mov dword [ebp - 0x14c], 0x10325476
mov dword [ebp - 0xc8], ecx
call fcn.00412410
mov ecx, dword [ebp - 0xc8]
lea edi, [ebp - 0x158]
call fcn.0040c830
mov ecx, eax
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40da84
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402b70
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
cmp eax, ecx
je 0x40dab0
push eax
call fcn.0042f827
add esp, 4
push 3
push ebx
lea eax, [ebp - 0xc8]
lea edx, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc8], edx
call fcn.00412410
mov ecx, dword [ebp - 0xc8]
lea edi, [ebp - 0x158]
call fcn.0040c830
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40daf0
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00402b70
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
cmp eax, ecx
je 0x40db1c
push eax
call fcn.0042f827
add esp, 4
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
mov ecx, edi
cmp esi, 0x10
jae 0x40db2c
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x40db38
lea eax, [ebp - 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40db58
test dl, dl
je 0x40db54
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40db58
add eax, 2
add ecx, 2
test dl, dl
jne 0x40db38
xor eax, eax
jmp 0x40db5d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40dba3
cmp esi, 0x10
jb 0x40db6f
push edi
call fcn.0042d960
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
jb 0x40db8e
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0042d960
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x10
jb 0x40dbb1
push edi
call fcn.0042d960
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
jb 0x40dbd0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0042d960
add esp, 4
call fcn.00406aa0
mov ebx, eax
mov eax, str._delay
lea esi, [ebp - 0x160]
call fcn.00403290
mov eax, esi
call fcn.00404900
mov esi, eax
mov eax, dword [ebp - 0x160]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40dc40
mov edi, dword [ebp - 0x164]
mov esi, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x168]
call fcn.0040fb40
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x168]
mov ebx, dword [ebp - 0x164]
push ecx
mov ecx, dword [ebp - 0x15c]
call fcn.0040d420
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 4