Function at 0x426140
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451956
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
push 0x105
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
call fcn.0042b800
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0042b800
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
push 0
push 0x461f1c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
push 2
push esi
call fcn.0043b5af
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4262bc
push esi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x17
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [ebp - 0x23c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x244], eax
test eax, eax
je 0x4262b3
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
mov dword [ebp - 0x240], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4262b3
push 0
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x244]
push dword [ebp - 0x23c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0043b170
add esp, 4
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00440311
add esp, 8
test eax, eax
je 0x42630a
lea eax, [ebp - 0x118]
push eax
push str.File_access_failed:__s
call fcn.00420640
add esp, 8
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov word [edi], ax
push eax
push 0x45d894
call fcn.0040cfe0
jmp 0x426445
push 0
push 1
lea ecx, [ebp - 0x3b8]
call fcn.00405320
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x3b8]
call fcn.00406f80
test eax, eax
je 0x42636c
lea eax, [ebp - 0x118]
push eax
push str.File_load_failed:__s
call fcn.00420640
add esp, 8
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov word [edi], ax
push eax
push 0x45d894
call fcn.0040cfe0
jmp 0x42643a
push str.forticlient_configuration
lea ecx, [ebp - 0x3b8]
call fcn.00406820
test eax, eax
jne 0x4263a5
lea eax, [ebp - 0x118]
push eax
push str.forticlient_configuration_missing:__s
call fcn.00420640
add esp, 8
mov ecx, edi
push 0x45d894
call fcn.0040e240
jmp 0x42643a
cmp dword [eax + 0x18], 0
jne 0x4263cd
lea eax, [ebp - 0x118]
push eax
push str.forticlient_configuration_has_no_child_element:__s
call fcn.00420640
add esp, 8
mov ecx, edi
push 0x45d894
call fcn.0040e240
jmp 0x42643a
push str.endpoint_control
mov ecx, eax
call fcn.00406820
test eax, eax
jne 0x4263f1
lea eax, [ebp - 0x118]
push eax
push str.optional_endpoint_control_is_absent:__s
call fcn.00420640
add esp, 8
lea eax, [ebp - 0x118]
push eax
call fcn.00422a80
mov esi, eax
add esp, 4
test esi, esi
je 0x42642c
push esi
lea ecx, [ebp - 0x238]
call fcn.0040efe0
lea eax, [ebp - 0x118]
push eax
push str.Extracted__s
call fcn.00420640
push esi
call fcn.0043b170
add esp, 0xc
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
call fcn.0041b650
lea ecx, [ebp - 0x3b8]
call fcn.004057b0
lea ecx, [ebp - 0x238]
call fcn.0040c360
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret