Function at 0x50ff30
Capabilities:
Check if file exists
Get file attributes
Hash data with md5
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65aaf0
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x444], edi
mov dword [ebp - 4], 0
mov eax, 0x2aaaaaab
mov edx, dword [edi + 0x20]
xor esi, esi
sub edx, dword [edi + 0x1c]
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x50ffac
mov ecx, dword [edi + 0x20]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x1c]
imul ecx
mov eax, edx
sar eax, 3
mov edx, eax
dec eax
shr edx, 0x1f
add edx, eax
call fcn.004fdf70
mov esi, eax
lea ecx, [esi + esi*2]
xor eax, eax
mov esi, dword [edi + 0x1c]
shl ecx, 4
add esi, ecx
mov dword [ebp - 0x450], ecx
cmp word [0x6b8d1c], ax
mov ecx, esi
setne al
push eax
push 0xffffffffffffffff
push 0x6b8d1c
call fcn.004ad190
push 0xffffffffffffffff
inc eax
mov ecx, esi
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.004ad140
mov esi, dword [ebp - 0x444]
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
sub esp, 8
cmp dword [ebp - 0x114], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x128]
lea ebx, [esi + 0x88]
mov dword [ebp - 0x44c], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx + 4], eax
lea eax, [ebp - 0xb0]
push eax
mov ecx, ebx
call fcn.004e9d10
mov byte [ebp - 4], 2
cmp ebx, eax
je 0x510046
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00416500
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x9c]
cmp eax, 8
jb 0x510068
inc eax
lea ecx, [ebp - 0xb0]
push eax
push dword [ebp - 0xb0]
call fcn.00416870
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], 0
mov word [ebp - 0xb0], ax
mov dword [ebp - 0x448], eax
cmp dword [ebx + 0x14], 8
jb 0x51009b
mov eax, dword [ebx]
jmp 0x51009d
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5102f5
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.004f6520
add esp, 4
mov dword [ebp - 0x68], 0x67452301
cmp dword [ebp - 0x84], 0x10
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x45c]
mov dword [ebp - 0x64], 0xefcdab89
cmovae eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x458], eax
call fcn.004fe6e0
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x198]
call fcn.004fe800
lea edx, [ebp - 0x198]
lea ecx, [ebp - 0xb0]
call fcn.004fe8b0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xb0]
cmp dword [ebp - 0x9c], 0x10
lea edx, [ebp - 0x464]
push 0
cmovae eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x460], eax
call fcn.004eb1f0
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x5101d1
inc eax
lea ecx, [ebp - 0xb0]
push eax
push dword [ebp - 0xb0]
call fcn.00414c80
mov ecx, dword [esi + 0x20]
mov eax, 0x2aaaaaab
sub ecx, dword [esi + 0x1c]
xor edi, edi
imul ecx
mov dword [ebp - 0x9c], 0xf
sar edx, 3
mov eax, edx
mov dword [ebp - 0xa0], 0
shr eax, 0x1f
mov byte [ebp - 0xb0], 0
add eax, edx
je 0x510273
mov ecx, dword [esi + 0x20]
mov eax, 0x2aaaaaab
sub ecx, dword [esi + 0x1c]
mov esi, dword [esi + 0x1c]
imul ecx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
add esi, 0x18
cmp dword [esi + 0x14], 8
jb 0x51022e
mov ecx, dword [esi]
jmp 0x510230
mov ecx, esi
push dword [esi + 0x10]
cmp dword [ebp - 0xb4], 8
lea eax, [ebp - 0xc8]
push ecx
cmovae eax, dword [ebp - 0xc8]
push dword [ebp - 0xb8]
push eax
call fcn.004f5d20
add esp, 0x10
test eax, eax
je 0x5107cd
inc edi
add esi, 0x30
cmp edi, ebx
jb 0x510224
mov ebx, dword [ebp - 0x44c]
mov esi, dword [ebp - 0x444]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xb4]
cmp eax, 8
jb 0x510295
inc eax
lea ecx, [ebp - 0xc8]
push eax
push dword [ebp - 0xc8]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
mov dword [ebp - 0xb8], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x84]
cmp eax, 0x10
jb 0x5102d4
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.00414c80
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
push 3
push ecx
push ebx
lea ecx, [ebp - 0x440]
call fcn.004fd720
mov byte [ebp - 4], 7
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 8
push eax
call fcn.004f7b40
add esp, 4
lea ecx, [ebp - 0x140]
call fcn.00537b60
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x510353
mov ecx, dword [eax]
jmp 0x510355
mov ecx, eax
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x46c]
mov dword [ebp - 0x46c], ecx
lea ecx, [ebp - 0xe0]
push 0
mov dword [ebp - 0x468], eax
call fcn.004eb1f0
add esp, 4
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x12c]
cmp eax, 0x10
jb 0x51039c
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.00414c80
sub esp, 8
mov dword [ebp - 0x12c], 0xf
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
mov ecx, esp
mov dword [ebp - 0x130], 0
cmovae eax, dword [ebp - 0xe0]
mov byte [ebp - 0x140], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x80]
call fcn.004e9d10
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
cmp ecx, eax
je 0x5103ff
push 0xffffffffffffffff
push 0
push eax
call fcn.00416500
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x144]
cmp eax, 8
jb 0x510421
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x144], 7
xor edx, edx
mov dword [ebp - 0x148], 0
lea ecx, [ebp - 0x80]
mov word [ebp - 0x158], ax
call fcn.004f80f0
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x440]
call fcn.004fd8e0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xe8], 0
je 0x510610
nop dword [eax + eax]
lea eax, [ebp - 0xf8]
push 1
push eax
call fcn.004f7530
add esp, 8
test al, al
jne 0x51059b
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0xf8]
call fcn.004e98d0
sub esp, 8
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
mov edx, esp
jb 0x5104ae
mov ecx, dword [eax]
jmp 0x5104b0
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x80]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x110]
push eax
call fcn.004e9d10
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x15c]
cmp eax, 8
jb 0x5104e9
inc eax
lea ecx, [ebp - 0x170]
push eax
push dword [ebp - 0x170]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x15c], 7
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x160], 0
mov word [ebp - 0x170], ax
call fcn.004e9f80
test al, al
jne 0x510535
lea ecx, [ebp - 0x110]
call fcn.004e9f80
test al, al
jne 0x510535
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0xf8]
call fcn.004f83b0
cmp dword [ebp - 0x100], 0x104
jae 0x51055c
cmp dword [ebp - 0xfc], 8
lea eax, [ebp - 0x110]
push 5
cmovae eax, dword [ebp - 0x110]
push 0
push eax
call edi
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xfc]
cmp eax, 8
jb 0x51057e
inc eax
lea ecx, [ebp - 0x110]
push eax
push dword [ebp - 0x110]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0xfc], 7
mov dword [ebp - 0x100], 0
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x440]
call fcn.004fd8e0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xe
cmp ecx, eax
je 0x5105c5
push 0xffffffffffffffff
push 0
push eax
call fcn.00416500
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x174]
cmp eax, 8
jb 0x5105e7
inc eax
lea ecx, [ebp - 0x188]
push eax
push dword [ebp - 0x188]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x174], 7
mov dword [ebp - 0x178], 0
mov word [ebp - 0x188], ax
cmp dword [ebp - 0xe8], eax
jne 0x510470
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xe4]
cmp eax, 8
jb 0x510632
inc eax
lea ecx, [ebp - 0xf8]
push eax
push dword [ebp - 0xf8]
call fcn.00416870
sub esp, 8
mov dword [ebp - 0xe4], 7
xor eax, eax
mov dword [ebp - 0xe8], 0
mov edx, esp
mov word [ebp - 0xf8], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x454], esp
mov dword [edx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x51066f
mov eax, 1
lock xadd dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov byte [ebp - 4], 0x12
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 0x450]
push ebx
push eax
mov byte [ebp - 4], 0xb
call fcn.00611146
add esp, 0x10
mov byte [ebp - 4], 8
test al, al
mov eax, dword [ebp - 0xcc]
je 0x510850
cmp eax, 8
jb 0x5106ba
inc eax
lea ecx, [ebp - 0xe0]
push eax
push dword [ebp - 0xe0]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x6c]
cmp eax, 8
jb 0x5106f0
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x51071a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x1b0]
call fcn.004fdc80
push 1
push dword [ebp - 0x1b0]
call fcn.0040ef10
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b0], 0
cmp eax, 8
jb 0x51075a
inc eax
lea ecx, [ebp - 0x1c8]
push eax
push dword [ebp - 0x1c8]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x1b4], 7
mov word [ebp - 0x1c8], ax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1b8], 0
cmp eax, 8
jb 0x510795
inc eax
lea ecx, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1e8]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x1d4], 7
mov word [ebp - 0x1e8], ax
mov eax, dword [ebp - 0x448]
inc eax
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x448], eax
cmp eax, 3
jb 0x510091
jmp 0x510960
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xb4]
cmp eax, 8
jb 0x5107ef
inc eax
lea ecx, [ebp - 0xc8]
push eax
push dword [ebp - 0xc8]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
mov dword [ebp - 0xb8], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x84]
cmp eax, 0x10
jb 0x51082e
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.00414c80
mov dword [ebp - 0x84], 0xf
xor esi, esi
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
jmp 0x510965
cmp eax, 8
jb 0x510868
inc eax
lea ecx, [ebp - 0xe0]
push eax
push dword [ebp - 0xe0]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x6c]
cmp eax, 8
jb 0x51089e
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x5108c8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x1b0]
call fcn.004fdc80
push 1
push dword [ebp - 0x1b0]
call fcn.0040ef10
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b0], 0
cmp eax, 8
jb 0x510908
inc eax
lea ecx, [ebp - 0x1c8]
push eax
push dword [ebp - 0x1c8]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x1b4], 7
mov word [ebp - 0x1c8], ax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1b8], 0
cmp eax, 8
jb 0x510943
inc eax
lea ecx, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1e8]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x1d4], 7
mov dword [ebp - 0x1d8], 0
mov word [ebp - 0x1e8], ax
mov esi, 5
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x114]
cmp eax, 8
jb 0x510987
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
mov dword [ebp - 4], 0x13
mov eax, dword [ebp + 8]
test eax, eax
je 0x5109c7
or ecx, 0xffffffff
lock xadd dword [eax], ecx
sub ecx, 1
jne 0x5109c7
mov ecx, dword [eax + 4]
push eax
call ecx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 8