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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4f92a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], ebx
call esi
test eax, eax
je 0x40da1e
push ebx
call esi
test eax, eax
je 0x40da66
push 3
push edi
lea edx, [ebp - 0xc8]
xor ebx, ebx
lea ecx, [ebp - 0xc4]
push edx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x148], ebx
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.00412200
mov ecx, dword [ebp - 0xc8]
lea edx, [ebp - 0x158]
call fcn.0040c760
mov edi, 0xf
mov ecx, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40d910
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402b40
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
cmp eax, ecx
je 0x40d93c
push eax
call fcn.00430b07
add esp, 4
mov eax, dword [ebp - 0x160]
push 3
push eax
lea ecx, [ebp - 0xc8]
lea edx, [ebp - 0xc4]
push ecx
mov dword [ebp - 0xc8], edx
call fcn.00412200
mov ecx, dword [ebp - 0xc8]
lea edx, [ebp - 0x158]
call fcn.0040c760
mov ecx, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40d980
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00402b40
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
cmp eax, edx
je 0x40d9ac
push eax
call fcn.00430b07
add esp, 4
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
mov ecx, edi
cmp esi, 0x10
jae 0x40d9bc
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x40d9c8
lea eax, [ebp - 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d9e8
cmp dl, bl
je 0x40d9e4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d9e8
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40d9c8
xor eax, eax
jmp 0x40d9ed
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40da33
cmp esi, 0x10
jb 0x40d9ff
push edi
call fcn.0042ec40
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
jb 0x40da1e
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0042ec40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x10
jb 0x40da41
push edi
call fcn.0042ec40
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
jb 0x40da60
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0042ec40
add esp, 4
mov edi, dword [ebp - 0x15c]
call fcn.00406940
mov ebx, eax
mov eax, str._delay
lea esi, [ebp - 0x168]
call fcn.00403260
mov eax, esi
call fcn.00404890
mov esi, eax
mov eax, dword [ebp - 0x168]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40daa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40dad6
mov edi, dword [ebp - 0x160]
mov esi, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x164]
call fcn.0040f9a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x164]
mov ebx, dword [ebp - 0x160]
push ecx
mov ecx, edi
call fcn.0040d2b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4