Function at 0x443090
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e62c
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4433c6
push str.hfgwupdate.exe
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x420]
push eax
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x44311a
xor eax, eax
jmp 0x443136
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.00403590
push 0
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x4433c6
lea edx, [ebp - 0x420]
push edx
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x44315f
xor esi, esi
jmp 0x44317d
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.00403590
mov esi, eax
sub esp, 0x1c
mov ecx, esp
mov edx, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x47c], esp
mov byte [ecx], 0
lea edi, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x4431a0
sub edx, edi
push edx
push esi
call fcn.00403870
lea edx, [ebp - 0x458]
push edx
call fcn.004679e0
add esp, 0x20
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x444]
mov edi, dword [ebp - 0x458]
mov eax, edi
cmp esi, 0x10
jae 0x4431df
lea eax, [ebp - 0x458]
push 0
push 0x4ab7d8
push eax
call fcn.00405ac0
add esp, 0xc
test eax, eax
jne 0x4431fe
cmp dword [ebp - 0x448], eax
setne al
test eax, eax
sete al
test al, al
je 0x44321d
cmp esi, 0x10
jb 0x4433c6
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x4433c6
lea eax, [ebp - 0x43c]
push eax
call fcn.00461050
add esp, 4
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x428]
mov edi, dword [ebp - 0x43c]
mov eax, edi
cmp esi, 0x10
jae 0x443249
lea eax, [ebp - 0x43c]
push 0
push 0x4ab7d8
push eax
call fcn.00405ac0
add esp, 0xc
test eax, eax
jne 0x443268
cmp dword [ebp - 0x42c], eax
setne al
test eax, eax
sete al
test al, al
jne 0x4433b0
cmp esi, 0x10
jae 0x443294
lea edi, [ebp - 0x43c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x44329c
xor eax, eax
jmp 0x4432b0
test edi, edi
jne 0x44327e
xor eax, eax
jmp 0x4432b0
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403550
push eax
lea ecx, [ebp - 0x478]
call fcn.004022c0
push 0x4adfcc
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 2
call fcn.004023c0
push str.hfgwupdate.exe
lea ecx, [ebp - 0x478]
call fcn.004023c0
mov eax, dword [ebp - 0x478]
mov edi, eax
test eax, eax
je 0x443315
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4432ff
xor eax, eax
jmp 0x443315
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403590
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x47c], esp
push eax
call fcn.004037c0
lea ecx, [ebp - 0x474]
push ecx
call fcn.004679e0
add esp, 0x20
lea ecx, [ebp - 0x474]
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.00444900
test al, al
je 0x44339a
mov edx, dword [ebp - 0x478]
push 0
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x474]
call fcn.00403800
lea ecx, [ebp - 0x478]
call fcn.0045d6b0
lea ecx, [ebp - 0x43c]
call fcn.00403800
lea ecx, [ebp - 0x458]
call fcn.00403800
mov al, 1
jmp 0x4433c8
lea ecx, [ebp - 0x474]
call fcn.00403800
lea ecx, [ebp - 0x478]
call fcn.0045d6b0
lea ecx, [ebp - 0x43c]
call fcn.00403800
lea ecx, [ebp - 0x458]
call fcn.00403800
xor al, al
lea esp, [ebp - 0x488]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret