Function at 0x40b220
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x458964
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x25c]
xor edx, edx
mov dl, byte [0x4663b0]
and esi, 0xff
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x40]
lea ecx, [esp + 0x144]
push eax
xor edx, esi
push ecx
push edx
mov dword [esp + 0x25c], 0
call fcn.00409900
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00415360
mov dword [esp + 0x1c], 0x45b904
mov eax, dword [esp + 0x258]
lea ecx, [esp + 0x1c]
push eax
push 0x103
mov byte [esp + 0x258], 1
call fcn.00414150
push esi
push 0x101
lea ecx, [esp + 0x24]
call fcn.00414150
mov ecx, dword [esp + 0x260]
push ecx
push 0x102
lea ecx, [esp + 0x24]
call fcn.00414150
mov edx, dword [esp + 0x264]
lea ecx, [esp + 0x1c]
push edx
push 0x109
call fcn.00414150
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x28], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x4663b4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40b36c
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x4663b4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea ecx, [esp + 0x2c]
call fcn.0040b000
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea ecx, [esp + 0x1c]
push eax
push 0x108
call fcn.004140c0
mov eax, dword [esp + 0x270]
test eax, eax
je 0x40b3da
mov al, byte [esp + 0x268]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
push 0
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x278]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea ecx, [esp + 0x2c]
call fcn.0040b080
mov ecx, dword [esp + 0x27c]
test ecx, ecx
je 0x40b400
mov eax, dword [esp + 0x280]
test eax, eax
jle 0x40b400
push eax
push ecx
push 0x1f0
lea ecx, [esp + 0x28]
call fcn.004144b0
mov al, byte [esp + 0x278]
test al, al
je 0x40b470
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x28], esp
push 0
mov byte [ebp], cl
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40b467
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
lea ecx, [esp + 0x2c]
call fcn.0040b180
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.004153b0
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b5a7
cmp edi, 4
jle 0x40b5a7
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x158]
push 0x40000000
push ecx
call dword [0x4672f0]
mov esi, eax
test esi, esi
je 0x40b565
cmp esi, 0xffffffff
je 0x40b565
mov edx, dword [esp + 0x14]
push edi
push edx
call fcn.00409340
mov ecx, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push 0
push eax
push edi
push ecx
push esi
call dword [0x46726c]
push esi
call dword [0x467338]
lea edx, [esp + 0x40]
lea eax, [esp + 0x144]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
mov byte [esp + 0x250], 0
mov dword [esp + 0x1c], 0x45b904
call fcn.004153a0
mov ecx, dword [esp + 0x26c]
test ecx, ecx
je 0x40b561
mov al, byte [ecx - 1]
test al, al
je 0x40b557
cmp al, 0xff
je 0x40b557
dec al
mov byte [ecx - 1], al
mov al, bl
jmp 0x40b5dc
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, bl
jmp 0x40b5dc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 0
mov dword [esp + 0x1c], 0x45b904
call fcn.004153a0
mov ecx, dword [esp + 0x26c]
test ecx, ecx
je 0x40b5da
mov al, byte [ecx - 1]
test al, al
je 0x40b59b
cmp al, 0xff
je 0x40b59b
dec al
mov byte [ecx - 1], al
jmp 0x40b5da
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x40b5da
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 0
mov dword [esp + 0x1c], 0x45b904
call fcn.004153a0
push 1
lea ecx, [esp + 0x26c]
mov dword [esp + 0x254], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x244
ret