Function at 0x403fc0
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40511b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [ebp + 0x58]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x554], 0
mov eax, dword [ecx - 8]
test eax, eax
jle 0x404015
cmp byte [eax + ecx - 1], 0x5c
je 0x404015
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edi, dword [esp + 0x55c]
lea ecx, [esp + 0x10]
lea esi, [edi + 0x10]
push esi
mov dword [esp + 0x24], esi
call sub.MFC42.DLL_CString::operator
cmp dword [edi], 1
jne 0x4040a7
push 0
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
call edi
add ebp, 0x5c
lea ecx, [esp + 0x10]
push ebp
call fcn.00404c3a
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x404072
cmp byte [eax + ecx - 1], 0x5c
je 0x404072
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x554], 0xffffffff
call fcn.00404be0
xor al, al
jmp 0x404481
lea ecx, [esp + 0x34]
push ebx
push ecx
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], 1
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, dword [sym.imp.MSVCRT.dll__findfirst]
push eax
call ebx
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40416b
xor eax, eax
lea ecx, [esp + 0x14]
push eax
push eax
push 3
push eax
push 1
push connect
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404155
lea edx, [esp + 0x18]
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x560]
mov ecx, dword [esp + 0x48]
mov eax, dword [ebx + 0xc]
cmp eax, ecx
jne 0x40415c
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x40415c
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x1c]
cmp edx, eax
jne 0x40415c
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.MSVCRT.dll__findclose]
add esp, 4
jmp 0x4042cc
mov ebx, dword [esp + 0x560]
push edi
call dword [sym.imp.MSVCRT.dll__findclose]
add esp, 4
jmp 0x4042cc
mov eax, dword [str..Update]
mov ecx, dword [0x408474]
mov dl, byte [0x408478]
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], ecx
mov ecx, 0xfd
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], dl
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::GetBuffer
inc eax
lea edi, [esp + 0x150]
push eax
or ecx, 0xffffffff
xor eax, eax
push 0x40846c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x158]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x15c]
push ecx
push edx
call ebx
add esp, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x4042da
xor ebx, ebx
lea eax, [esp + 0x150]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4042b7
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x560]
mov ecx, dword [esp + 0x48]
mov edx, dword [eax + 0xc]
cmp edx, ecx
jne 0x4042b7
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
cmp ecx, edx
jne 0x4042b7
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x1c]
cmp edx, eax
jne 0x4042b7
push str..HDCX.exe
push ebx
mov ecx, esi
mov byte [esp + 0x1b], bl
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x4042b7
mov eax, dword [ebp + 0x54]
lea ecx, [esp + 0x28]
push eax
push str.File_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, esi
push str..updateupdate.ini
push ebx
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x2c]
push eax
push edx
push str.Update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [ebp + 0x54]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll__findclose]
mov ebx, dword [esp + 0x564]
add esp, 4
mov al, byte [esp + 0x13]
test al, al
je 0x404468
jmp 0x4042e1
mov ebx, dword [esp + 0x560]
lea ecx, [ebp + 0x5c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404c3a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x40430b
cmp byte [eax + ecx - 1], 0x5c
je 0x40430b
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40435f
push 0x408454
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x404355
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov byte [esp + 0x13], 0
jmp 0x404413
mov edx, dword [0x408594]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
mov eax, dword [edx + 0x11c]
push 0x406
push eax
call edi
mov ecx, dword [0x408594]
push 0
push 0
push 0x402
mov edx, dword [ecx + 0x11c]
push edx
call edi
lea eax, [esp + 0x14]
lea ecx, [ebp + 0x20]
push eax
call fcn.00404c3a
push esi
lea ecx, [ebp + 0x24]
call fcn.00404c3a
mov ecx, dword [ebx + 4]
push 0
mov dword [ebp + 0x28], ecx
mov edx, dword [ebx + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x2c], edx
mov eax, dword [esi]
mov eax, dword [eax - 8]
lea ebx, [eax + 3]
mov word [ecx], bx
mov edx, dword [ebp + 0xc]
and ebx, 0xffff
mov ecx, esi
mov byte [edx + 2], 9
lea edi, [ebx - 3]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [esp + 0x20], edi
mov edi, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
add edi, 3
mov edx, ecx
push 0
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
call fcn.004044a0
mov esi, dword [esp + 0x24]
push str..HDCX.exe
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x404468
mov edx, dword [ebp + 0x54]
lea eax, [esp + 0x28]
push edx
push str.File_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, esi
push str..updateupdate.ini
push 0
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x2c]
push eax
push ecx
push str.Update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [ebp + 0x54]
lea ecx, [esp + 0x14]
mov dword [esp + 0x558], 0xffffffff
call fcn.00404be0
mov al, byte [esp + 0x13]
pop ebx
mov ecx, dword [esp + 0x54c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x54c
ret 4