Function at 0x405928
Capabilities:
Accept command line arguments
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x290c]
mov eax, 0x290c
call fcn.0042d800
push 0xffffffffffffffff
push 0x4324e0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x2908], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x10], 0
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp + 0x2702]
push eax
call fcn.00421bc0
add esp, 0xc
lea ebx, [ebp + 0x2700]
call fcn.0040571f
xor ebx, ebx
cmp eax, ebx
jne 0x40599e
xor eax, eax
jmp 0x405ba8
xor eax, eax
push esi
mov word [ebp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp + 0x24fa]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
lea edi, [ebp + 0x24f8]
call fcn.004057c6
cmp eax, ebx
je 0x405ba5
xor eax, eax
mov dword [ebp + 0x54], 7
mov dword [ebp + 0x50], ebx
mov word [ebp + 0x40], ax
push 0x405370
push 0x406465
push 1
push 0x3c
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
call fcn.0041f838
lea eax, [ebp]
push eax
mov byte [ebp - 4], 1
call fcn.00410c6b
pop ecx
test eax, eax
je 0x405a1d
cmp dword [ebp + 0x1c], 8
mov edx, dword [ebp + 8]
jae 0x405a13
lea edx, [ebp + 8]
lea eax, [ebp + 0x3c]
push eax
call fcn.004105fa
pop ecx
xor eax, eax
push 0x208e
mov word [ebp + 0x58], ax
lea eax, [ebp + 0x5a]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call fcn.0040fa22
mov dword [ebp - 0x10], eax
mov edi, 0x103
cmp eax, ebx
je 0x405af0
cmp word [eax], bx
je 0x405af0
xor eax, eax
push esi
mov word [ebp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp + 0x22f2]
push ebx
push eax
call fcn.00421bc0
lea eax, [ebp + 0x22f0]
push eax
push 0x435d08
push dword [ebp - 0x10]
call fcn.0040fa78
add esp, 0x18
cmp word [ebp + reloc.ADVAPI32.dll_RegCloseKey], bx
je 0x405ab7
lea eax, [ebp + 0x2700]
push eax
push 0x435df0
push dword [ebp - 0x10]
lea eax, [ebp + 0x58]
push 0x435e04
push 0x1047
push eax
call fcn.0041fb89
add esp, 0x18
jmp 0x405b24
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x405ac3
lea eax, [ebp + 0x40]
push eax
push 0x435d08
lea eax, [ebp + 0x2700]
push eax
push 0x435df0
push dword [ebp - 0x10]
lea eax, [ebp + 0x58]
push 0x435e18
push 0x1047
push eax
call fcn.0041fb89
add esp, 0x20
jmp 0x405b24
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x405afc
lea eax, [ebp + 0x40]
push eax
push 0x435d08
lea eax, [ebp + 0x2700]
push eax
push 0x435df0
push 0x435e3c
lea eax, [ebp + 0x58]
push 0x1047
push eax
call fcn.0041fb89
add esp, 0x1c
xor eax, eax
push esi
mov word [ebp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp + 0x20ea]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
push edi
lea eax, [ebp + 0x20e8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x20e8]
push ebx
push eax
lea ecx, [ebp + 0x24f8]
call fcn.0040e5e1
pop ecx
pop ecx
lea ecx, [ebp + 0x58]
lea ebx, [ebp + 0x24f8]
call fcn.0040f0d8
push 4
mov dword [ebp - 0x10], eax
xor ebx, ebx
push ebx
lea eax, [ebp + 0x24f8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x405370
push 1
push 0x3c
lea eax, [ebp]
push eax
mov byte [ebp - 4], bl
call fcn.0041f8fb
push ebx
push 1
lea esi, [ebp + 0x3c]
call fcn.004064c2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2908]
xor ecx, ebp
call fcn.0041f23c
add ebp, 0x290c
leave
ret