Function at 0x57ac4a
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x6bd65c
call fcn.00651da4
sub esp, 0x11c
xor eax, eax
cmp dword [0x7d1410], 1
mov dword [ebp - 0x48], eax
jne 0x57ac7b
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [eax], 1
call fcn.0057cb85
jmp 0x57af6c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], eax
mov byte [esi], 1
mov byte [ebp - 0x3c], al
push 0xa
push 0x182
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x57acc1
mov ebx, str.UnpackRemoteIE___Unable_to_Find_Resource_File
push ebx
call fcn.0040f6ae
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040f427
mov byte [esi], 0
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp byte [esi], 0
mov ebx, eax
je 0x57acf0
test ebx, ebx
jne 0x57acf0
push str.UnpackRemoteIE___Resource_file_size_is_0_byte
call fcn.0040f6ae
pop ecx
push eax
push str.UnpackRemoteIE___Resource_file_size_is_0_byte
lea ecx, [ebp - 0x3c]
call fcn.0040f427
mov byte [esi], bl
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp byte [esi], 0
mov edi, eax
je 0x57ad20
test edi, edi
jne 0x57ad20
push str.UnpackRemoteIE___LoadResource_Failed
call fcn.0040f6ae
pop ecx
push eax
push str.UnpackRemoteIE___LoadResource_Failed
lea ecx, [ebp - 0x3c]
call fcn.0040f427
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp byte [esi], 0
mov dword [ebp + 0xc], eax
je 0x57ae97
test eax, eax
jne 0x57ad53
push str.UnpackRemoteIE___Lock_Resource_Failed
call fcn.0040f6ae
pop ecx
push eax
push str.UnpackRemoteIE___Lock_Resource_Failed
lea ecx, [ebp - 0x3c]
call fcn.0040f427
mov byte [esi], 0
cmp byte [esi], 0
je 0x57ae97
lea eax, [ebp - 0x24]
push eax
call fcn.0057cb85
cmp byte [esi], 0
mov byte [ebp - 4], 1
je 0x57add3
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x57ad7a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x57add3
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x57ad91
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.00579aba
test al, al
je 0x57add3
cmp dword [ebp - 0x44], ebx
jne 0x57add3
cmp dword [ebp - 0x40], 0
jne 0x57add3
push edi
mov byte [esi], 1
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0042810c
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004284eb
push 0
jmp 0x57af5f
call fcn.0057c112
mov byte [esi], al
test al, al
je 0x57ae6d
push 1
push 0x40
push 0x22
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x128]
call fcn.0044778b
cmp dword [ebp - 0xd8], 0
mov byte [ebp - 4], 2
je 0x57ae46
push 0
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x128]
call fcn.004588a6
lea ecx, [ebp - 0x128]
call fcn.0044cabb
push edi
mov byte [esi], 1
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0042810c
lea ecx, [ebp - 0x128]
call fcn.004483e2
jmp 0x57adc0
mov ebx, str.UnpackRemoteIE___Open_File_to_write_Failed
push ebx
call fcn.0040f6ae
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040f427
xor ebx, ebx
lea ecx, [ebp - 0x128]
mov byte [esi], bl
call fcn.004483e2
jmp 0x57ae87
mov ebx, str.UnpackRemoteIE___Create_File_Failed
push ebx
call fcn.0040f6ae
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040f427
xor ebx, ebx
mov byte [esi], bl
push ebx
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004284eb
jmp 0x57ae99
xor ebx, ebx
cmp dword [ebp - 0x2c], 0
je 0x57af46
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
push str.error
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.0040f49f
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
jae 0x57aed1
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00428ecf
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040f579
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.0040facf
push ebx
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.0040facf
push str.remote_ieprocess
lea ecx, [ebp - 0x60]
call fcn.0040f49f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x24]
push eax
push 0x2c
call fcn.004857ae
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040facf
push ebx
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0040facf
test edi, edi
je 0x57af51
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [ebp + 8]
push 0x6d2128
call fcn.00428153
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040facf
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8