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

Disassembly:
push 0xffffffffffffffff
push 0x4757a3
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 [0x47f138]
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0
call dword [0x47f138]
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4db7c4]
push eax
push str.Ran_IMBA_Season_2_
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 0x403ff5
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.00462afe
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4db7c0]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4807c8
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 0x404069
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.00462afe
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4db7c0]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x4807c8
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 0x404117
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.00462afe
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