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

Disassembly:
push 0xf4
mov eax, 0x442b38
call fcn.0042e3b2
xor eax, eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], eax
mov word [ebp - 0x60], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x64]
mov eax, edi
call fcn.00402220
lea eax, [ebp - 0x64]
push eax
push esi
lea ebx, [ebp - 0x2c]
call fcn.004058d8
mov eax, ebx
push eax
mov byte [ebp - 4], 1
call fcn.00405f3f
add esp, 0xc
test al, al
je 0x40200a
mov eax, ebx
push eax
call fcn.00405e16
pop ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00405f3f
test al, al
pop ecx
je 0x4020f0
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x9c]
call fcn.00403257
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00405ece
test al, al
je 0x4020da
mov edi, esi
lea ebx, [ebp - 0x2c]
call fcn.00405e0e
xor ebx, ebx
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], ebx
mov word [ebp - 0x7c], bx
mov eax, 0x4461b0
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 3
call fcn.004015ff
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xd8]
push eax
mov byte [ebp - 4], 4
call fcn.00405c90
push ebx
push 1
lea esi, [ebp - 0x100]
mov byte [ebp - 4], 6
call fcn.004016ab
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00405d19
test al, al
je 0x4020b7
lea edi, [ebp - 0x80]
lea ebx, [ebp - 0x9c]
call fcn.00405e0e
xor ebx, ebx
lea eax, [ebp - 0xd8]
push eax
mov byte [ebp - 4], 3
call fcn.00405cdc
push ebx
push 1
lea esi, [ebp - 0x80]
call fcn.004016ab
mov edi, dword [ebp - 0xe0]
jmp 0x4020dc
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.004016ab
jmp 0x4020f2
xor ebx, ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00405f3f
test al, al
pop ecx
je 0x402128
mov byte [ebp - 0xd9], 1
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.004016ab
push ebx
push 1
lea esi, [ebp - 0x64]
call fcn.004016ab
mov al, byte [ebp - 0xd9]
jmp 0x40221a
mov eax, str.USER_FILE
lea ecx, [ebp - 0x48]
call fcn.004015ff
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x402141
lea eax, [ebp - 0x44]
push eax
movzx eax, word [edi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x402166
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.004016ab
mov byte [ebp - 0xd9], bl
jmp 0x402107
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [ebp - 0xe0], eax
je 0x402153
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0xe4], eax
je 0x402153
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x402153
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0xd9], bl
jae 0x4021a9
lea eax, [ebp - 0x28]
push 0x4461cc
push eax
call fcn.0042c204
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4021e4
push esi
push dword [ebp - 0xe0]
push 1
push edi
call fcn.0042be94
add esp, 0x10
cmp dword [ebp - 0xe0], eax
jne 0x4021dd
mov byte [ebp - 0xd9], 1
push esi
call fcn.0042c0c2
pop ecx
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.004016ab
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.004016ab
push ebx
push 1
lea esi, [ebp - 0x64]
call fcn.004016ab
cmp byte [ebp - 0xd9], bl
setne al
call fcn.0042e435
ret