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

Disassembly:
mov eax, 0x4205ec
call fcn.0041fac0
mov eax, 0x26e8
call fcn.0041fa70
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x45a]
mov word [ebp - 0x45c], bx
mov esi, 0x103
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x18], ebx
push eax
call fcn.0040d95d
test eax, eax
je 0x40dd5f
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x252]
mov word [ebp - 0x254], bx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x254]
push eax
call fcn.0040da0e
test eax, eax
je 0x40dd5c
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x40dd6e
push 0x40e2ac
push 1
lea eax, [ebp - 0x4c]
push 0x24
push eax
mov dword [ebp - 4], ebx
call fcn.0041fc58
lea eax, [ebp - 0x4c]
push 1
push eax
mov byte [ebp - 4], 1
call fcn.00403d31
pop ecx
test eax, eax
pop ecx
je 0x40dc30
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jne 0x40dc21
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x28]
push ecx
push 1
push eax
call fcn.00403642
add esp, 0xc
mov ecx, 0x823
xor eax, eax
lea edi, [ebp - 0x26f2]
mov word [ebp - 0x26f4], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402a74
cmp eax, ebx
pop ecx
je 0x40dc9a
cmp word [eax], bx
je 0x40dc9a
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x40dc6b
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ecx
lea ecx, [ebp - 0x45c]
push str._unipr:
push ecx
push str._unpath:
push eax
push str._s__s__s___s__s_
lea eax, [ebp - 0x26f4]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x20
jmp 0x40dcd2
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x40dca6
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x45c]
push str._unipr:
push eax
push str._unpath:
push str._s__s___s__s_
lea eax, [ebp - 0x26f4]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x662]
mov word [ebp - 0x664], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x664]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x254]
push ebx
push eax
lea eax, [ebp - 0x664]
push eax
call fcn.004016c4
push ebx
lea eax, [ebp - 0x26f4]
push ebx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00402231
add esp, 0x1c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x254]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x40dd6e
push 1
lea eax, [ebp - 0x4c]
push 0x24
push eax
mov byte [ebp - 4], bl
call fcn.0041fb64
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret