Function at 0x40d950
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 0x40db1e
push ebx
call edi
test eax, eax
je 0x40db60
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.00412370
mov ecx, dword [ebp - 0xc8]
lea edi, [ebp - 0x158]
call fcn.0040c850
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 0x40da14
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 0x40da40
push eax
call fcn.0042f81a
add esp, 4
push 3
push ebx
lea eax, [ebp - 0xc8]
lea edx, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc8], edx
call fcn.00412370
mov ecx, dword [ebp - 0xc8]
lea edi, [ebp - 0x158]
call fcn.0040c850
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 0x40da80
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 0x40daac
push eax
call fcn.0042f81a
add esp, 4
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
mov ecx, edi
cmp esi, 0x10
jae 0x40dabc
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x40dac8
lea eax, [ebp - 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dae8
test dl, dl
je 0x40dae4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dae8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dac8
xor eax, eax
jmp 0x40daed
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40db33
cmp esi, 0x10
jb 0x40daff
push edi
call fcn.0042d950
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
jb 0x40db1e
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0042d950
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf67
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x10
jb 0x40db41
push edi
call fcn.0042d950
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
jb 0x40db60
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0042d950
add esp, 4
call fcn.00406ac0
mov ebx, eax
mov eax, str._delay
lea esi, [ebp - 0x160]
call fcn.00403290
mov eax, esi
call fcn.00404910
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 0x40dba2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40dbd0
mov edi, dword [ebp - 0x164]
mov esi, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x168]
call fcn.0040fad0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf67
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.0040d3b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf67
mov esp, ebp
pop ebp
ret 4