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

Disassembly:
mov eax, 0x6bc9c7
call fcn.006426c4
sub esp, 0x11c
xor eax, eax
cmp dword [0x7edf00], 1
mov dword [ebp - 0x48], eax
jne 0x697faa
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [eax], 1
call fcn.006984aa
jmp 0x69829b
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 0x697ff0
mov ebx, 0x7466f4
push ebx
call fcn.0040f53e
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040f2b7
mov byte [esi], 0
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp byte [esi], 0
mov ebx, eax
je 0x69801f
test ebx, ebx
jne 0x69801f
push 0x746724
call fcn.0040f53e
pop ecx
push eax
push 0x746724
lea ecx, [ebp - 0x3c]
call fcn.0040f2b7
mov byte [esi], bl
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp byte [esi], 0
mov edi, eax
je 0x69804f
test edi, edi
jne 0x69804f
push 0x746754
call fcn.0040f53e
pop ecx
push eax
push 0x746754
lea ecx, [ebp - 0x3c]
call fcn.0040f2b7
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp byte [esi], 0
mov dword [ebp + 0xc], eax
je 0x6981c6
test eax, eax
jne 0x698082
push 0x74677c
call fcn.0040f53e
pop ecx
push eax
push 0x74677c
lea ecx, [ebp - 0x3c]
call fcn.0040f2b7
mov byte [esi], 0
cmp byte [esi], 0
je 0x6981c6
lea eax, [ebp - 0x24]
push eax
call fcn.006984aa
cmp byte [esi], 0
mov byte [ebp - 4], 1
je 0x698102
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x6980a9
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x698102
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x6980c0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.00463a48
test al, al
je 0x698102
cmp dword [ebp - 0x44], ebx
jne 0x698102
cmp dword [ebp - 0x40], 0
jne 0x698102
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.00427f9c
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004285f6
push 0
jmp 0x69828e
call fcn.00698349
mov byte [esi], al
test al, al
je 0x69819c
push 1
push 0x40
push 0x22
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x128]
call fcn.0044c75f
cmp dword [ebp - 0xd8], 0
mov byte [ebp - 4], 2
je 0x698175
push 0
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x128]
call fcn.0045c905
lea ecx, [ebp - 0x128]
call fcn.004517cb
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.00427f9c
lea ecx, [ebp - 0x128]
call fcn.0044d3e2
jmp 0x6980ef
mov ebx, 0x7467a4
push ebx
call fcn.0040f53e
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040f2b7
xor ebx, ebx
lea ecx, [ebp - 0x128]
mov byte [esi], bl
call fcn.0044d3e2
jmp 0x6981b6
mov ebx, 0x7467d0
push ebx
call fcn.0040f53e
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040f2b7
xor ebx, ebx
mov byte [esi], bl
push ebx
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004285f6
jmp 0x6981c8
xor ebx, ebx
cmp dword [ebp - 0x2c], 0
je 0x698275
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.0040f32f
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
jae 0x698200
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0046adc6
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040f409
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.0040f95f
push str.remote_ieprocess
lea ecx, [ebp - 0x60]
call fcn.0040f32f
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.00489021
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0040f95f
test edi, edi
je 0x698280
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [ebp + 8]
push 0x6c4198
call fcn.00429d77
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040f95f
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