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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b363c
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x4d84d0]
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 dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], 0
push 0x4b78c0
lea ecx, [ebp + 0x10]
call fcn.00402c70
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp + 0x10]
call fcn.0041fc30
push 4
lea ecx, [ebp - 0x1c]
call fcn.00424830
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.0040a800
add esp, 8
mov dword [ebp - 0x1bc], eax
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c0]
call fcn.00406f40
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041efe0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call fcn.004048f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x1c]
call fcn.00404b30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4287b8
mov eax, 0x20
test eax, eax
je 0x428768
push 0xb0
lea ecx, [ebp - 0xd0]
call fcn.00424830
push 1
push 3
lea ecx, [ebp - 0xd0]
call fcn.00412600
mov byte [ebp - 4], 6
lea eax, [ebp - 0xd8]
push eax
call fcn.0042ee10
add esp, 4
lea eax, [ebp - 0xd8]
push eax
call fcn.0042fb80
add esp, 4
mov dword [ebp - 0xdc], eax
mov byte [ebp - 0x11c], 0
push 0x3f
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.00490e10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 8]
push edx
push str._02d:_02d:_02d__u._u_
push 0x40
lea eax, [ebp - 0x11c]
push eax
call fcn.00493cad
add esp, 0x20
lea eax, [ebp - 0xd0]
test eax, eax
je 0x428646
lea ecx, [ebp - 0xd0]
add ecx, 0x10
mov dword [ebp - 0x1bc], ecx
jmp 0x428650
mov dword [ebp - 0x1bc], 0
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x1a0]
push eax
call fcn.0040a800
add esp, 8
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x1c4]
push edx
push str._path:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_file_failed__error_code:
push 0x4b7674
push str.CMainFrame
push 0x4b768c
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.0040d3d0
add esp, 8
push eax
call fcn.0040d3d0
add esp, 8
push eax
call fcn.0040d3d0
add esp, 8
push eax
call fcn.0040d3d0
add esp, 8
push eax
call fcn.0040d3d0
add esp, 8
mov ecx, eax
call fcn.0041f8e0
push eax
call fcn.0040d3d0
add esp, 8
push eax
call fcn.0040d090
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a0]
call fcn.004048f0
push 0x411690
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0xd0]
call fcn.0041d910
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x1c0]
push edx
push 0x4db630
call fcn.0040d090
add esp, 8
mov ecx, eax
call fcn.00413d80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x188]
call fcn.004048f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd0]
call fcn.00414570
xor eax, eax
jne 0x42857c
mov dword [ebp - 0x170], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0041f5f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.0041f5f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.00402c50
mov eax, dword [ebp - 0x170]
jmp 0x428869
lea ecx, [ebp + 0xc]
call fcn.00404b30
push eax
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x128], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x16c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0041f5f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.0041f5f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.00402c50
mov eax, dword [ebp - 0x16c]
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.004909b2
mov esp, ebp
pop ebp
ret 0x38