Function at 0x403bc0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x419168]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x214], 0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x838], esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x834], esi
je 0x403c36
mov ecx, dword [ebp - 0x838]
push esi
push ecx
push edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x24
xor ecx, ecx
cmp ebx, 0x80000000
jne 0x403c5c
movzx eax, word [ecx + str.HKEY_CLASS_ROOT_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x403c40
jmp 0x403cf7
cmp ebx, 0x80000001
jne 0x403c89
jmp 0x403c70
movzx eax, word [ecx + str.HKEY_CURRENT_USER_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x403c70
jmp 0x403cf7
cmp ebx, 0x80000002
jne 0x403caa
movzx eax, word [ecx + str.HKEY_LOCAL_MACHINE_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x403c91
jmp 0x403cf7
cmp ebx, 0x80000003
jne 0x403ce0
jmp 0x403cc0
movzx eax, word [ecx + str.HKEY_USERS_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x403cc0
jmp 0x403cf7
movzx eax, word [ecx + str.HKEY_UNKNOWN_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x403ce0
mov edx, edi
mov esi, edi
jmp 0x403d00
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403d00
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403d16
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x82c]
lea edx, [ebp - 0x414]
sub edx, ecx
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x403d40
lea edx, [ebp - 0x20c]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403d57
lea edi, [ebp - 0x414]
sub edx, esi
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403d70
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403dff
lea edi, [eax + 1]
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, eax
test esi, esi
je 0x403de2
push esi
push str.SHCreateDirectory_Failed_with_code__d
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00406e86
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 2
push dword [ebp - 0x82c]
call esi
push 2
lea eax, [ebp - 0x414]
push eax
call esi
jmp 0x403e04
mov edi, 2
mov eax, dword [ebp - 0x834]
test eax, eax
je 0x403e10
mov dword [eax], edi
mov eax, dword [ebp - 0x82c]
push dword [ebp - 0x82c]
mov ecx, dword [eax + 0x20c]
sub ecx, dword [eax + 0x208]
mov eax, 0x7d8c42b3
imul ecx
sar edx, 9
mov esi, edx
shr esi, 0x1f
add esi, edx
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x834], esi
call fcn.00403830
lea eax, [ebp - 0x834]
push eax
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x828]
push dword [ebp + 0x18]
push dword [ebp - 0x830]
push ebx
call fcn.00403f10
mov dword [ebp - 0x830], eax
cmp edi, 1
jne 0x403ed0
push 0x204
lea eax, [ebp - 0x208]
push 0
push eax
mov dword [ebp - 0x20c], 0x30
call fcn.00407130
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ea0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0
push ebx
lea ecx, [ebp - 0x828]
call fcn.00404640
mov ecx, dword [ebp - 0x82c]
lea eax, [ebp - 0x828]
push eax
lea ecx, [ecx + 0x208]
call fcn.00404bd0
mov ecx, dword [ebp - 0x838]
mov eax, dword [ebp - 0x830]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x24