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

Disassembly:
push 0xffffffffffffffff
push 0x100190e1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10021138]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 0x44], 1
mov esi, dword [0x10023648]
call fcn.10016e00
movzx eax, word [esp + 0x4c]
push 0x1001d9bc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10017745
mov esi, 8
cmp dword [esp + 0x68], esi
jb 0x10017717
mov ecx, dword [esp + 0x54]
push ecx
call fcn.10004382
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x1001773e
mov edx, dword [esp + 0x70]
push edx
call fcn.10004382
add esp, 4
xor eax, eax
jmp 0x100178ed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x1001779b
mov esi, 8
cmp dword [esp + 0x68], esi
jb 0x1001776d
mov eax, dword [esp + 0x54]
push eax
call fcn.10004382
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x1001773e
mov ecx, dword [esp + 0x70]
push ecx
call fcn.10004382
add esp, 4
xor eax, eax
jmp 0x100178ed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
jne 0x100177f3
mov esi, 8
cmp dword [esp + 0x68], esi
jb 0x100177c1
mov edx, dword [esp + 0x54]
push edx
call fcn.10004382
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x1001773e
mov eax, dword [esp + 0x70]
push eax
call fcn.10004382
add esp, 4
xor eax, eax
jmp 0x100178ed
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
push edi
call esi
cmp esi, ebx
mov ebp, eax
je 0x10017891
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x74]
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.10002bf0
push 1
push 0x1001d9cc
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.10002f20
push ebx
lea ecx, [esp + 0x54]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x24]
call fcn.10002e60
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x1001785d
lea eax, [esp + 0x20]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100178a7
lea esi, [esp + 0x1c]
call fcn.10002950
lea esi, [esp + 0x50]
call fcn.10002950
lea esi, [esp + 0x6c]
call fcn.10002950
xor eax, eax
jmp 0x100178ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x100178c4
lea eax, [esp + 0x20]
call fcn.10017180
test eax, eax
lea esi, [esp + 0x1c]
je 0x1001788c
call fcn.10002950
lea esi, [esp + 0x50]
call fcn.10002950
lea esi, [esp + 0x6c]
call fcn.10002950
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10004387
add esp, 0x34
ret