Function at 0x408c00
Capabilities:
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bc448
mov eax, dword fs:[0]
push eax
sub esp, 0xa68
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0xa60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0xa7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa8c]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], edi
cmp dword [ebp + 4], ebx
je 0x409063
lea eax, [esp + 0x66c]
push eax
lea ecx, [esp + 0x470]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x64]
push eax
push edi
call dword [sym.imp.MSVCR90.dll__wsplitpath]
add esp, 0x14
push 0x4bfb9c
push 0x4bfba4
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x87c]
push eax
call dword [sym.imp.MSVCR90.dll__wmakepath]
lea eax, [esp + 0x78]
add esp, 0x14
add eax, 0xfffffffe
jmp 0x408cb0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408cb0
mov ecx, dword [0x4bfb9c]
mov edx, dword [0x4bfba0]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 0x4bfba8
lea edx, [esp + 0x270]
call fcn.00409670
add esp, 0xc
lea edx, [esp + 0x264]
push ebx
push edx
call dword [sym.imp.MSVCR90.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x408f88
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], vtable.CFileSystem.0
call sub.mfc90u.dll_CFileFind::CFileFind
mov dword [esp + 0xa84], ebx
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x28], vtable.CFileInfoArray.0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x264]
push eax
mov byte [esp + 0xa88], 1
call fcn.00408b00
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x48]
add esp, 4
push ebx
lea ecx, [esp + 0x870]
push ecx
lea ecx, [esp + 0x48]
call eax
cmp eax, ebx
je 0x408de3
jmp 0x408d70
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x4c]
lea ecx, [esp + 0x40]
call eax
mov edx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [edx + 0x40]
push 0x10
lea ecx, [esp + 0x44]
call eax
test eax, eax
jne 0x408dd7
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x44]
lea ecx, [esp + 0x40]
call eax
test eax, eax
jne 0x408dd7
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.00409990
mov byte [esp + 0xa84], 2
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2c]
call fcn.00409700
lea ecx, [esp + 0x14]
mov byte [esp + 0xa84], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp esi, ebx
jne 0x408d70
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
xor esi, esi
cmp ebp, ebx
jle 0x408f50
lea ecx, [ecx]
cmp esi, ebx
jl 0x408e02
cmp esi, ebp
jge 0x408e02
mov eax, edi
cmp byte [edi + 0x4d5], bl
jne 0x408e07
mov eax, 0x4bd9a4
lea edx, [esp + 0x66c]
push edx
lea ecx, [esp + 0x470]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath]
lea eax, [esp + 0x78]
add esp, 0x14
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408e32
mov edx, dword [0x4bfb9c]
mov ecx, dword [0x4bfba0]
mov dword [eax], edx
mov dword [eax + 4], ecx
lea edx, [esp + 0x66c]
push edx
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.MSVCR90.dll__wmakepath]
add esp, 0x14
cmp esi, ebx
jl 0x408e8c
cmp esi, ebp
jge 0x408e8c
mov eax, edi
cmp byte [edi + 0x4d5], bl
jne 0x408e91
mov eax, 0x4bd9a4
push 2
lea ecx, [esp + 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x408eee
lea ecx, [esp + 0x18]
call dword [0x4bd7a8]
cmp esi, ebx
mov byte [esp + 0xa84], 3
jl 0x408eca
cmp esi, ebp
jge 0x408eca
mov eax, edi
cmp byte [edi + 0x4d5], bl
jne 0x408ecf
mov eax, 0x4bd9a4
lea edx, [esp + 0x264]
push edx
push eax
lea eax, [esp + 0x20]
push 0x4bfbb4
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
lea ecx, [esp + 0x28]
jmp 0x408f34
lea ecx, [esp + 0x14]
call dword [0x4bd7a8]
cmp esi, ebx
mov byte [esp + 0xa84], 4
jl 0x408f12
cmp esi, ebp
jge 0x408f12
mov eax, edi
cmp byte [edi + 0x4d5], bl
jne 0x408f17
mov eax, 0x4bd9a4
lea ecx, [esp + 0x264]
push ecx
push eax
lea edx, [esp + 0x1c]
push 0x4bfbe8
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
lea ecx, [esp + 0x24]
add esp, 0x10
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc esi
add edi, 0x4d8
cmp esi, ebp
jl 0x408df0
mov edi, dword [esp + 0x30]
mov byte [esp + 0xa84], bl
cmp edi, ebx
je 0x408f64
push edi
call sub.mfc90u.dll_delete
add esp, 4
mov dword [esp + 0xa84], 0xffffffff
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], vtable.CFileSystem.0
call fcn.0042baa8
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x66c]
push eax
lea ecx, [esp + 0x470]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x64]
push eax
push edi
call dword [sym.imp.MSVCR90.dll__wsplitpath]
lea eax, [esp + 0x78]
add esp, 0x14
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408fb3
mov ecx, dword [0x4bfb9c]
mov edx, dword [0x4bfba0]
mov dword [eax], ecx
mov dword [eax + 4], edx
push 0x4bfb9c
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.MSVCR90.dll__wmakepath]
add esp, 0x14
push 0x88
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0xa84], 5
cmp esi, ebx
je 0x40903b
push 1
push 0x40
push 0x2a
lea ecx, [esp + 0x270]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::constructor_wchar_t_const___int__int_]
mov dword [esi + 0x54], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, esi
jmp 0x40903d
xor eax, eax
mov dword [esp + 0xa84], 0xffffffff
mov dword [ebp + 8], eax
cmp dword [eax + 0x50], ebx
jne 0x409063
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax]
add ecx, eax
mov eax, dword [edx]
push 1
call eax
mov dword [ebp + 8], ebx
lea esi, [ebp + 0xc]
push esi
push edi
mov dword [ebp + 0x14], ebx
call fcn.004a8290
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x40909b
mov ecx, dword [esi]
push ecx
call fcn.004a61c0
add esp, 4
push edi
lea esi, [esp + 0x5c]
call fcn.00408760
push 0x4c8bd8
mov edx, esi
push edx
call sub.MSVCR90.dll__CxxThrowException
push ebx
call dword [sym.imp.MSVCR90.dll__time64]
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov edi, edx
cdq
add esp, 4
add eax, ecx
mov ecx, dword [esi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
adc edx, edi
push 0x409420
push ecx
mov dword [esp + 0x2c], edx
call fcn.004a4b50
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0xa7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa60]
xor ecx, esp
call fcn.0042bebe
add esp, 0xa74
ret 4