Function at 0x4504d0
Capabilities:
Create directory
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4b6f0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
mov ebx, dword [esp + 0x288]
push ebp
mov ebp, ecx
test ebx, ebx
mov dword [esp + 0x10], ebp
je 0x450706
push esi
push edi
lea ecx, [esp + 0x40]
call fcn.00452b70
lea ecx, [esp + 0x10]
mov dword [esp + 0x28c], 0
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push eax
push str._sglacmglacm___.dat
push ecx
mov byte [esp + 0x298], 1
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x294], 2
call sub.MFC42.DLL_CFileFind::FindFile
xor esi, esi
test eax, eax
je 0x45064d
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x450639
mov eax, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [eax + 0x40]
test eax, eax
jne 0x450639
push 0x35
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0xd
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x20]
stosb byte es:[edi], al
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x294], 3
call fcn.00452bc0
lea ecx, [esp + 0x20]
mov byte [esp + 0x28c], 2
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x21]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 8]
push ebp
push eax
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ebp, dword [esp + 0x18]
mov esi, 1
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45056a
test esi, esi
jne 0x4506ce
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x80]
push str._sglacm
push edx
call esi
mov ebx, dword [sym.imp.MSVCRT.dll__mkdir]
lea eax, [esp + 0x88]
push eax
call ebx
add esp, 0x10
test eax, eax
je 0x4506ce
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x180]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [ebp + 8]
add esp, 4
lea edx, [esp + 0x180]
push eax
push ecx
push str._s_d
push edx
call esi
lea eax, [esp + 0x190]
lea ecx, [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
lea edx, [esp + 0x94]
push edx
call ebx
add esp, 0x1c
lea ecx, [esp + 0x24]
mov byte [esp + 0x28c], 1
call fcn.0045539e
lea ecx, [esp + 0x10]
mov byte [esp + 0x28c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov dword [esp + 0x28c], 0xffffffff
call fcn.00452bb0
pop edi
pop esi
mov ecx, dword [esp + 0x27c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret 4