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

Disassembly:
mov eax, 0x42022c
call fcn.0041f700
mov eax, 0x26e8
call fcn.0041f6b0
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.0040d802
test eax, eax
je 0x40dc04
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.0040d8b3
test eax, eax
je 0x40dc01
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 0x40dc13
push 0x40e151
push 1
lea eax, [ebp - 0x4c]
push 0x24
push eax
mov dword [ebp - 4], ebx
call fcn.0041f898
lea eax, [ebp - 0x4c]
push 1
push eax
mov byte [ebp - 4], 1
call fcn.00403d31
pop ecx
test eax, eax
pop ecx
je 0x40dad5
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jne 0x40dac6
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 0x40db3f
cmp word [eax], bx
je 0x40db3f
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x40db10
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 0x42816c
push ecx
push 0x428158
push eax
push 0x428134
lea eax, [ebp - 0x26f4]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x20
jmp 0x40db77
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x40db4b
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 0x42816c
push eax
push 0x428158
push 0x428118
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 0x40dc13
push 1
lea eax, [ebp - 0x4c]
push 0x24
push eax
mov byte [ebp - 4], bl
call fcn.0041f7a4
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