Function at 0x42e380
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4720c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1008
call fcn.0046fc30
mov eax, dword [0x49c1c8]
mov dword [ebp - 0x3c], eax
push esi
push edi
mov dword [ebp - 0x38], 0xa
mov dword [ebp - 0x34], 0xbbd
mov dword [ebp - 0x30], 0xbbe
mov dword [ebp - 0x2c], 0xbbf
mov dword [ebp - 0x28], 0xbc0
mov dword [ebp - 0x24], 0xc1c
mov dword [ebp - 0x20], 0xc1d
mov dword [ebp - 0x1c], 0xbc1
mov dword [ebp - 0x18], 0xbc2
mov dword [ebp - 0x14], 0xbc3
mov dword [ebp - 0x10], 0xf9f
mov ecx, 6
mov esi, str.simulate.reg
lea edi, [ebp - 0xfdc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x5d
xor eax, eax
lea edi, [ebp - 0xfc2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [str.hp2710.ini]
mov dword [ebp - 0xe4c], eax
mov ecx, dword [0x47c4a4]
mov dword [ebp - 0xe48], ecx
mov edx, dword [0x47c4a8]
mov dword [ebp - 0xe44], edx
mov eax, dword [0x47c4ac]
mov dword [ebp - 0xe40], eax
mov ecx, dword [0x47c4b0]
mov dword [ebp - 0xe3c], ecx
mov dx, word [0x47c4b4]
mov word [ebp - 0xe38], dx
mov ecx, 0x5e
xor eax, eax
lea edi, [ebp - 0xe36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [str.hp9100.ini]
mov dword [ebp - 0xcbc], eax
mov ecx, dword [0x47c4bc]
mov dword [ebp - 0xcb8], ecx
mov edx, dword [0x47c4c0]
mov dword [ebp - 0xcb4], edx
mov eax, dword [0x47c4c4]
mov dword [ebp - 0xcb0], eax
mov ecx, dword [0x47c4c8]
mov dword [ebp - 0xcac], ecx
mov dx, word [0x47c4cc]
mov word [ebp - 0xca8], dx
mov ecx, 0x5e
xor eax, eax
lea edi, [ebp - 0xca6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [str.hpr707.ini]
mov dword [ebp - 0xb2c], eax
mov ecx, dword [0x47c4d4]
mov dword [ebp - 0xb28], ecx
mov edx, dword [0x47c4d8]
mov dword [ebp - 0xb24], edx
mov eax, dword [0x47c4dc]
mov dword [ebp - 0xb20], eax
mov ecx, dword [0x47c4e0]
mov dword [ebp - 0xb1c], ecx
mov dx, word [0x47c4e4]
mov word [ebp - 0xb18], dx
mov ecx, 0x5e
xor eax, eax
lea edi, [ebp - 0xb16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 9
mov esi, str.ps2710_iconhi.png
lea edi, [ebp - 0x99c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5b
xor eax, eax
lea edi, [ebp - 0x978]
rep stosd dword es:[edi], eax
mov eax, dword [str.9100.png]
mov dword [ebp - 0x80c], eax
mov ecx, dword [0x47c510]
mov dword [ebp - 0x808], ecx
mov edx, dword [0x47c514]
mov dword [ebp - 0x804], edx
mov eax, dword [0x47c518]
mov dword [ebp - 0x800], eax
mov cx, word [0x47c51c]
mov word [ebp - 0x7fc], cx
mov ecx, 0x5f
xor eax, eax
lea edi, [ebp - 0x7fa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 9
mov esi, str.backupconfig1.ini
lea edi, [ebp - 0x67c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5b
xor eax, eax
lea edi, [ebp - 0x658]
rep stosd dword es:[edi], eax
mov ecx, 9
mov esi, str.backupconfig2.ini
lea edi, [ebp - 0x4ec]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5b
xor eax, eax
lea edi, [ebp - 0x4c8]
rep stosd dword es:[edi], eax
mov ecx, 9
mov esi, str.backupconfig6.ini
lea edi, [ebp - 0x35c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5b
xor eax, eax
lea edi, [ebp - 0x338]
rep stosd dword es:[edi], eax
mov edx, dword [str.Many.reg]
mov dword [ebp - 0x1cc], edx
mov eax, dword [0x47c590]
mov dword [ebp - 0x1c8], eax
mov ecx, dword [0x47c594]
mov dword [ebp - 0x1c4], ecx
mov edx, dword [0x47c598]
mov dword [ebp - 0x1c0], edx
mov ax, word [0x47c59c]
mov word [ebp - 0x1bc], ax
mov ecx, 0x5f
xor eax, eax
lea edi, [ebp - 0x1ba]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.c:SC_Simulate_
lea ecx, [ebp - 0xfe4]
call fcn.00402910
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xfe4]
call fcn.00402aa0
push eax
call dword [0x49c230]
mov dword [ebp - 0xfe0], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0xfe4]
call fcn.00402b00
mov dword [ebp - 0xfe8], 0
jmp 0x42e6a0
mov ecx, dword [ebp - 0xfe8]
add ecx, 1
mov dword [ebp - 0xfe8], ecx
cmp dword [ebp - 0xfe8], 0xa
jge 0x42e8ad
push 0xa
mov edx, dword [ebp - 0xfe8]
movzx eax, word [ebp + edx*4 - 0x34]
push eax
push 0
call dword [0x49c254]
mov dword [ebp - 0xfec], eax
cmp dword [ebp - 0xfec], 0
je 0x42e8a8
mov ecx, dword [ebp - 0xfec]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xff0], eax
mov edx, dword [ebp - 0xfec]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xff4], eax
cmp dword [ebp - 0xff4], 0
je 0x42e89b
mov eax, dword [ebp - 0xff4]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1000], eax
lea ecx, [ebp - 0xffc]
call fcn.004028f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xfe8]
imul ecx, ecx, 0x190
lea edx, [ebp + ecx - 0xfdc]
push edx
lea eax, [ebp - 0xfe4]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call fcn.0041a890
add esp, 0xc
mov dword [ebp - 0x1010], eax
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1014], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1014]
push eax
lea ecx, [ebp - 0xffc]
call fcn.004029a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x100c]
call fcn.00402980
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0xffc]
call fcn.00405020
push eax
call dword [0x49c238]
mov dword [ebp - 0xff8], eax
cmp dword [ebp - 0xff8], 0xffffffff
jne 0x42e7e8
push str.Simulation_File_not_created
push str.void___cdecl_SimulateDevices_bool_
push 0x7aa
push 0x47c640
push 0
mov ecx, 0x49d444
call fcn.00441760
jmp 0x42e88c
mov dword [ebp - 0x1004], 0
push 0
lea ecx, [ebp - 0x1004]
push ecx
mov edx, dword [ebp - 0xff0]
push edx
mov eax, dword [ebp - 0x1000]
push eax
mov ecx, dword [ebp - 0xff8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xff8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1005], 0
movzx eax, byte [ebp + 8]
test eax, eax
je 0x42e84b
mov ecx, dword [ebp - 0xfe8]
cmp dword [ebp + ecx*4 - 0x34], 0xf9f
jne 0x42e849
mov byte [ebp - 0x1005], 1
jmp 0x42e862
mov edx, dword [ebp - 0xfe8]
cmp dword [ebp + edx*4 - 0x34], 0xbbd
jne 0x42e862
mov byte [ebp - 0x1005], 1
movzx eax, byte [ebp - 0x1005]
test eax, eax
je 0x42e88c
push 1
push 0
push 0
lea ecx, [ebp - 0xffc]
call fcn.00405020
push eax
push 0x47c65c
push 0
call dword [0x49c2d4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xffc]
call fcn.00402980
mov ecx, dword [ebp - 0xfec]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x42e691
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfe4]
call fcn.00402980
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x3c]
call fcn.0046faad
pop edi
pop esi
mov esp, ebp
pop ebp
ret