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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x440d84]
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 0x429cb6
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.0042b9f8
mov esp, ebp
pop ebp
ret 0x24
xor ecx, ecx
cmp ebx, 0x80000000
jne 0x429cdc
movzx eax, word [ecx + str.HKEY_CLASS_ROOT_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x429cc0
jmp 0x429d77
cmp ebx, 0x80000001
jne 0x429d09
jmp 0x429cf0
movzx eax, word [ecx + str.HKEY_CURRENT_USER_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x429cf0
jmp 0x429d77
cmp ebx, 0x80000002
jne 0x429d2a
movzx eax, word [ecx + str.HKEY_LOCAL_MACHINE_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x429d11
jmp 0x429d77
cmp ebx, 0x80000003
jne 0x429d60
jmp 0x429d40
movzx eax, word [ecx + str.HKEY_USERS_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x429d40
jmp 0x429d77
movzx eax, word [ecx + str.HKEY_UNKNOWN_]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x429d60
mov edx, edi
mov esi, edi
jmp 0x429d80
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x429d80
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x429d96
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 0x429dc0
lea edx, [ebp - 0x20c]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x429dd7
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 0x429df0
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 0x429e80
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 0x429e63
push esi
push str.SHCreateDirectory_Failed_with_code__d
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b9f8
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 0x429e85
mov edi, 2
mov eax, dword [ebp - 0x834]
test eax, eax
je 0x429e91
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.004297b0
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.00429f90
mov dword [ebp - 0x830], eax
cmp edi, 1
jne 0x429f50
push 0x204
lea eax, [ebp - 0x208]
push 0
push eax
mov dword [ebp - 0x20c], 0x30
call sub.MSVCR110.dll_memset
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429f20
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.0042a6c0
mov ecx, dword [ebp - 0x82c]
lea eax, [ebp - 0x828]
push eax
lea ecx, [ecx + 0x208]
call fcn.0042af40
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.0042b9f8
mov esp, ebp
pop ebp
ret 0x24