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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4fb2a0]
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 0x40dade
push ebx
call edi
test eax, eax
je 0x40db20
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.004122c0
mov ecx, dword [ebp - 0xc8]
lea edi, [ebp - 0x158]
call fcn.0040c790
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 0x40d9d4
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 0x40da00
push eax
call fcn.00430ac7
add esp, 4
push 3
push ebx
lea eax, [ebp - 0xc8]
lea edx, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc8], edx
call fcn.004122c0
mov ecx, dword [ebp - 0xc8]
lea edi, [ebp - 0x158]
call fcn.0040c790
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 0x40da40
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 0x40da6c
push eax
call fcn.00430ac7
add esp, 4
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
mov ecx, edi
cmp esi, 0x10
jae 0x40da7c
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x40da88
lea eax, [ebp - 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40daa8
test dl, dl
je 0x40daa4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40daa8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40da88
xor eax, eax
jmp 0x40daad
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40daf3
cmp esi, 0x10
jb 0x40dabf
push edi
call fcn.0042ec00
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
jb 0x40dade
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0042ec00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x10
jb 0x40db01
push edi
call fcn.0042ec00
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
jb 0x40db20
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0042ec00
add esp, 4
call fcn.00406990
mov ebx, eax
mov eax, str._delay
lea esi, [ebp - 0x160]
call fcn.00403290
mov eax, esi
call fcn.004048f0
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 0x40db62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40db90
mov edi, dword [ebp - 0x164]
mov esi, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x168]
call fcn.0040fa60
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
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.0040d370
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4