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

Disassembly:
mov eax, 0x6844f1
call fcn.006313fc
sub esp, 0x12c
xor eax, eax
cmp dword [0x7999d8], 1
mov dword [esp + 0x38], eax
jne 0x66353d
mov eax, dword [esp + 0x144]
push dword [esp + 0x140]
mov byte [eax], 1
call fcn.00663b17
jmp 0x6638b8
push ebx
push esi
mov esi, dword [esp + 0x14c]
push edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], eax
mov byte [esi], 1
mov byte [esp + 0x24], al
push 0xa
push 0x182
push eax
mov dword [esp + 0x14c], eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x66358f
mov ebx, str.UnpackRemoteIE___Unable_to_Find_Resource_File
push ebx
call fcn.00409db4
pop ecx
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.00409b2f
mov byte [esi], 0
push ebp
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp byte [esi], 0
mov ebx, eax
je 0x6635bd
test ebx, ebx
jne 0x6635bd
mov ebp, str.UnpackRemoteIE___Resource_file_size_is_0_byte
push ebp
call fcn.00409db4
pop ecx
push eax
push ebp
lea ecx, [esp + 0x30]
call fcn.00409b2f
mov byte [esi], bl
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp byte [esi], 0
mov edi, eax
je 0x6635eb
test edi, edi
jne 0x6635eb
mov ebp, str.UnpackRemoteIE___LoadResource_Failed
push ebp
call fcn.00409db4
pop ecx
push eax
push ebp
lea ecx, [esp + 0x30]
call fcn.00409b2f
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp byte [esi], 0
mov ebp, eax
je 0x66378b
test ebp, ebp
jne 0x66361e
push str.UnpackRemoteIE___Lock_Resource_Failed
call fcn.00409db4
pop ecx
push eax
push str.UnpackRemoteIE___Lock_Resource_Failed
lea ecx, [esp + 0x30]
call fcn.00409b2f
mov byte [esi], 0
cmp byte [esi], 0
je 0x66378b
lea eax, [esp + 0x10]
push eax
call fcn.00663b17
cmp byte [esi], 0
mov byte [esp + 0x144], 1
je 0x6636b2
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x66364d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x6636b2
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x663667
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.00662464
test al, al
je 0x6636b2
cmp dword [esp + 0x40], ebx
jne 0x6636b2
cmp dword [esp + 0x44], 0
jne 0x6636b2
push edi
mov byte [esi], 1
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [esp + 0x150]
lea eax, [esp + 0x10]
push eax
call fcn.00422ed9
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0042341c
push 0
jmp 0x6638a9
call fcn.00663999
mov byte [esi], al
test al, al
je 0x66375b
push 1
push 0x40
push 0x22
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xa4]
call fcn.00448f2f
cmp dword [esp + 0xe8], 0
mov byte [esp + 0x144], 2
je 0x663732
push 0
push ebx
push ebp
lea ecx, [esp + 0xa0]
call fcn.00459b47
lea ecx, [esp + 0x94]
call fcn.0044dfdf
push edi
mov byte [esi], 1
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [esp + 0x150]
lea eax, [esp + 0x10]
push eax
call fcn.00422ed9
lea ecx, [esp + 0x94]
call fcn.00449d2d
jmp 0x66369e
mov ebx, str.UnpackRemoteIE___Open_File_to_write_Failed
push ebx
call fcn.00409db4
pop ecx
push eax
push ebx
lea ecx, [esp + 0x30]
call fcn.00409b2f
xor ebx, ebx
lea ecx, [esp + 0x94]
mov byte [esi], bl
call fcn.00449d2d
jmp 0x663776
mov ebx, str.UnpackRemoteIE___Create_File_Failed
push ebx
call fcn.00409db4
pop ecx
push eax
push ebx
lea ecx, [esp + 0x30]
call fcn.00409b2f
xor ebx, ebx
mov byte [esi], bl
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], bl
call fcn.0042341c
jmp 0x66378d
xor ebx, ebx
cmp dword [esp + 0x38], 0
je 0x66388c
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
mov byte [esp + 0x144], 3
jae 0x6637bf
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
call fcn.00409ba7
push str.error
lea ecx, [esp + 0x68]
mov byte [esp + 0x148], 4
call fcn.00409ba7
push ebx
lea eax, [esp + 0x50]
mov byte [esp + 0x148], 5
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00483a6d
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 6
call fcn.00409c77
push ebx
push 1
lea ecx, [esp + 0x84]
call fcn.0040a0e9
push ebx
push 1
lea ecx, [esp + 0x6c]
call fcn.0040a0e9
push ebx
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x14c], 3
call fcn.0040a0e9
push str.remote_ieprocess
lea ecx, [esp + 0x50]
call fcn.00409ba7
push ebx
push ebx
push ebx
lea eax, [esp + 0x58]
mov byte [esp + 0x150], 7
push eax
lea eax, [esp + 0x20]
push eax
push 0x2c
call fcn.00484725
push ebx
push 1
lea ecx, [esp + 0x54]
call fcn.0040a0e9
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], bl
call fcn.0040a0e9
test edi, edi
je 0x663897
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [esp + 0x150]
push 0x689954
call fcn.004249e7
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.0040a0e9
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x140]
mov dword fs:[0], ecx
leave
ret 8