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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d588
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.1001aa20
push 0x10021a70
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x1001bfcb
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100048c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.100048c0
mov eax, dword [ebp - 0x48]
jmp 0x1001c1b6
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1001c00c
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100048c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.100048c0
mov eax, dword [ebp - 0x4c]
jmp 0x1001c1b6
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1001c04d
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100048c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.100048c0
mov eax, dword [ebp - 0x50]
jmp 0x1001c1b6
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [sym.imp.KERNEL32.dll_LockResource], 0
jne 0x1001c08d
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100048c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.100048c0
mov eax, dword [ebp - 0x54]
jmp 0x1001c1b6
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10004880
mov byte [ebp - 4], 2
push 0x10021a80
lea ecx, [ebp - 0x40]
call fcn.10004940
lea edx, [ebp + 0x10]
push edx
lea ecx, [ebp - 0x40]
call fcn.10004920
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x40]
call fcn.10004a20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001c129
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.100048c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100048c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.100048c0
mov eax, dword [ebp - 0x58]
jmp 0x1001c1b6
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x40]
call fcn.10004a20
push eax
call fcn.1001ba60
add esp, 4
test eax, eax
jne 0x1001c185
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.100048c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100048c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.100048c0
mov eax, dword [ebp - 0x5c]
jmp 0x1001c1b6
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.100048c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100048c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.100048c0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007764
mov esp, ebp
pop ebp
ret