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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8cc
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x8cc], ecx
mov dword [ebp - 0x8c8], edi
mov dword [ebp - 0x8c4], ebx
call esi
test eax, eax
je 0x4129dc
push ebx
call esi
test eax, eax
je 0x412a60
push 3
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x13c], 0
push edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x150], 0x67452301
mov dword [ebp - 0x14c], 0xefcdab89
mov dword [ebp - 0x148], 0x98badcfe
mov dword [ebp - 0x144], 0x10325476
mov dword [ebp - 0xc0], eax
call fcn.00416120
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x150]
call fcn.00411760
mov edx, eax
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412890
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00402a10
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xbc]
cmp eax, ecx
je 0x4128bc
push eax
call fcn.004a3673
add esp, 4
push 3
lea eax, [ebp - 0xbc]
push ebx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], eax
call fcn.00416120
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x150]
call fcn.00411760
mov edx, eax
mov dword [ebp - 0x34], 0
mov ecx, edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412903
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.00402a10
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xbc]
cmp eax, ecx
je 0x41292f
push eax
call fcn.004a3673
add esp, 4
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
cmp ebx, 0x10
cmovae eax, edi
cmp dword [ebp - 8], 0x10
cmovae ecx, esi
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x412970
test dl, dl
je 0x41296c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x412970
add ecx, 2
add eax, 2
test dl, dl
jne 0x412950
xor eax, eax
jmp 0x412975
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4129f1
cmp ebx, 0x10
jb 0x4129a9
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x41299f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b1a
push ecx
push edi
call fcn.0049789c
add esp, 8
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x4129dc
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4129d2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b1a
push ecx
push esi
call fcn.0049789c
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 8
cmp ebx, 0x10
jb 0x412a21
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x412a17
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b1a
push ecx
push edi
call fcn.0049789c
add esp, 8
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x412a54
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x412a4a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b1a
push ecx
push esi
call fcn.0049789c
add esp, 8
mov edi, dword [ebp - 0x8c8]
mov ebx, dword [ebp - 0x8c4]
call fcn.00408bd0
mov ecx, eax
call fcn.00407010
test eax, eax
je 0x412afa
test edi, edi
je 0x4129dc
test ebx, ebx
je 0x4129dc
push 0x800
lea eax, [ebp - 0x8c0]
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x8c0]
push 0x400
push ebx
push eax
call fcn.004aa018
add esp, 0xc
lea eax, [ebp - 0x8c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x8c0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x8cc]
mov eax, 1
mov byte [ecx + 0x1c90], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x8cc]
push ebx
push edi
call fcn.004121d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret 8
call fcn.0049e530
int3