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

Disassembly:
mov eax, 0x6893d1
call fcn.0062921c
sub esp, 0x11c
xor eax, eax
cmp dword [0x7a7cd8], 1
mov dword [ebp - 0x48], eax
jne 0x668426
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [eax], 1
call fcn.00668970
jmp 0x668717
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 0x66846c
mov ebx, str.UnpackRemoteIE___Unable_to_Find_Resource_File
push ebx
call fcn.0040a79e
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040a517
mov byte [esi], 0
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp byte [esi], 0
mov ebx, eax
je 0x66849b
test ebx, ebx
jne 0x66849b
push str.UnpackRemoteIE___Resource_file_size_is_0_byte
call fcn.0040a79e
pop ecx
push eax
push str.UnpackRemoteIE___Resource_file_size_is_0_byte
lea ecx, [ebp - 0x3c]
call fcn.0040a517
mov byte [esi], bl
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp byte [esi], 0
mov edi, eax
je 0x6684cb
test edi, edi
jne 0x6684cb
push str.UnpackRemoteIE___LoadResource_Failed
call fcn.0040a79e
pop ecx
push eax
push str.UnpackRemoteIE___LoadResource_Failed
lea ecx, [ebp - 0x3c]
call fcn.0040a517
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp byte [esi], 0
mov dword [ebp + 0xc], eax
je 0x668642
test eax, eax
jne 0x6684fe
push str.UnpackRemoteIE___Lock_Resource_Failed
call fcn.0040a79e
pop ecx
push eax
push str.UnpackRemoteIE___Lock_Resource_Failed
lea ecx, [ebp - 0x3c]
call fcn.0040a517
mov byte [esi], 0
cmp byte [esi], 0
je 0x668642
lea eax, [ebp - 0x24]
push eax
call fcn.00668970
cmp byte [esi], 0
mov byte [ebp - 4], 1
je 0x66857e
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x668525
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x66857e
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x66853c
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.0066745b
test al, al
je 0x66857e
cmp dword [ebp - 0x44], ebx
jne 0x66857e
cmp dword [ebp - 0x40], 0
jne 0x66857e
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.004231e5
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.0042386b
push 0
jmp 0x66870a
call fcn.006687f2
mov byte [esi], al
test al, al
je 0x668618
push 1
push 0x40
push 0x22
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x128]
call fcn.00447635
cmp dword [ebp - 0xd8], 0
mov byte [ebp - 4], 2
je 0x6685f1
push 0
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x128]
call fcn.004576f5
lea ecx, [ebp - 0x128]
call fcn.0044c64a
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.004231e5
lea ecx, [ebp - 0x128]
call fcn.00448275
jmp 0x66856b
mov ebx, str.UnpackRemoteIE___Open_File_to_write_Failed
push ebx
call fcn.0040a79e
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040a517
xor ebx, ebx
lea ecx, [ebp - 0x128]
mov byte [esi], bl
call fcn.00448275
jmp 0x668632
mov ebx, str.UnpackRemoteIE___Create_File_Failed
push ebx
call fcn.0040a79e
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040a517
xor ebx, ebx
mov byte [esi], bl
push ebx
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0042386b
jmp 0x668644
xor ebx, ebx
cmp dword [ebp - 0x2c], 0
je 0x6686f1
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.0040a58f
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
jae 0x66867c
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004652bb
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040a669
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.0040abbf
push ebx
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.0040abbf
push str.remote_ieprocess
lea ecx, [ebp - 0x60]
call fcn.0040a58f
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.004827b0
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040abbf
push ebx
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0040abbf
test edi, edi
je 0x6686fc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [ebp + 8]
push 0x68eb70
call fcn.00424ff1
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040abbf
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