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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062226
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x10090730]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov dword [ebp - 0x468], ecx
mov dword [ebp - 0x460], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1003c004
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x46c], eax
test eax, eax
je 0x1003c004
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x45c], eax
test eax, eax
je 0x1003c004
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x464], eax
test eax, eax
je 0x1003c004
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.10043bc0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], 0
mov word [ebp - 0x43c], ax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x420]
push 0x1006adcc
push edx
call fcn.1004554c
add esp, 8
test eax, eax
je 0x1003bf06
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1003ba20
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.1003bc00
add esp, 0xc
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.1000ca90
lea ecx, [ebp - 0x458]
call fcn.10002c60
cmp dword [ebp - 0x428], 8
jb 0x1003befe
mov esi, dword [ebp - 0x43c]
jmp 0x1003bf0c
lea esi, [ebp - 0x43c]
jmp 0x1003bf0c
lea esi, [ebp - 0x420]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.10043bc0
push 0x5c
push esi
call fcn.1004551e
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1004536d
lea edi, [ebp - 0x218]
add esp, 0x20
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1003bf50
mov ecx, dword [0x1006adc8]
mov eax, dword [ebp - 0x468]
mov dword [edi], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003bf70
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1003bf86
mov ecx, eax
shr ecx, 2
push 0
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
push 0
push 0
mov ecx, eax
push 0x40000000
lea edx, [ebp - 0x218]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ebp - 0x464]
push 0
mov esi, eax
lea eax, [ebp - 0x470]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x1003c008
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x43c]
call fcn.10002c60
xor eax, eax
jmp 0x1003c04f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x460]
test edx, edx
je 0x1003c03f
lea eax, [ebp - 0x218]
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1003c030
lea ecx, [ebp - 0x43c]
call fcn.10002c60
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100444a1
mov esp, ebp
pop ebp
ret