Function at 0x403f50
Capabilities:
Access peb ldr_data
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4754e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call dword [0x47e138]
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0
call dword [0x47e138]
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4da7a4]
push eax
push str.New_Ran_IMBA_
push ecx
lea edx, [esp + 0x18]
push str._s_s_s
mov bl, 1
push edx
mov byte [esp + 0x64], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CFileFind::CFileFind
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 2
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x20]
call sub.MFC71.DLL_CFileFind::FindFile
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x404005
push 0x80
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], bl
call fcn.0046282e
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4da7a0]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x47f7a8
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CFileFind::CFileFind
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 3
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x20]
call sub.MFC71.DLL_CFileFind::FindFile
test eax, eax
je 0x404079
push 0x80
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], bl
call fcn.0046282e
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4da7a0]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x47f7a8
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x2e
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CFileFind::CFileFind
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 5
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CFileFind::FindFile
test eax, eax
je 0x404127
push 0x80
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], bl
call fcn.0046282e
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret