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

Disassembly:
mov eax, 0x41ba00
call fcn.0041b220
mov eax, 0x26e8
call fcn.0041b1d0
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.0040a2bb
test eax, eax
je 0x40a6bc
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.0040a36c
test eax, eax
je 0x40a6b9
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 0x40a6cb
push 0x40ab76
push 1
lea eax, [ebp - 0x4c]
push 0x24
push eax
mov dword [ebp - 4], ebx
call fcn.0041b3be
lea eax, [ebp - 0x4c]
push 1
push eax
mov byte [ebp - 4], 1
call fcn.00403b45
pop ecx
test eax, eax
pop ecx
je 0x40a58e
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jne 0x40a57f
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.00403518
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.00402985
cmp eax, ebx
pop ecx
je 0x40a5f8
cmp word [eax], bx
je 0x40a5f8
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x40a5c9
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 0x422cb8
push ecx
push 0x422ca4
push eax
push 0x422c80
lea eax, [ebp - 0x26f4]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x20
jmp 0x40a630
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x40a604
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 0x422cb8
push eax
push 0x422ca4
push 0x422c64
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
lea eax, [ebp - 0x26f4]
push ebx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00402158
add esp, 0x18
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x254]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x40a6cb
push 1
lea eax, [ebp - 0x4c]
push 0x24
push eax
mov byte [ebp - 4], bl
call fcn.0041b2ca
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