Function at 0x409c18
Capabilities:
Extract resource via kernel32 functions
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x4074f0]
call fcn.00402d14
xor eax, eax
push ebp
push 0x409f9f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x409fb0
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x409f6e
push edi
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409f6e
push edi
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409f6e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
mov ecx, 4
mov edx, dword [ebp - 0xc]
call fcn.00403bfc
add dword [ebp - 0xc], 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
jbe 0x409e14
push ebx
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x4073f0]
call fcn.004035bc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x40746c]
call fcn.004035bc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x407418]
call fcn.004035bc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x407498]
call fcn.004035bc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4074c4]
call fcn.004035bc
add esp, 4
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x409d72
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x28]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0xc]
call fcn.00402754
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ebx*4]
call fcn.004027bc
inc eax
add dword [ebp - 0xc], eax
inc ebx
dec esi
jne 0x409d51
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x409d9e
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x24]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0xc]
call fcn.00402754
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
call fcn.004027bc
inc eax
add dword [ebp - 0xc], eax
inc ebx
dec esi
jne 0x409d7d
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x409dc2
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov ecx, 1
mov edx, dword [ebp - 0xc]
call fcn.00403bfc
inc dword [ebp - 0xc]
inc ebx
dec esi
jne 0x409da9
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x409dee
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0xc]
call fcn.00402754
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
call fcn.004027bc
inc eax
add dword [ebp - 0xc], eax
inc ebx
dec esi
jne 0x409dcd
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x409e14
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x14]
lea eax, [eax + ebx*4]
mov ecx, 4
mov edx, dword [ebp - 0xc]
call fcn.00403bfc
add dword [ebp - 0xc], 4
inc ebx
dec esi
jne 0x409df9
mov eax, dword [ebp - 8]
call fcn.00403c0c
push edi
call sub.kernel32.dll_FreeResource
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x409f6e
inc esi
xor ebx, ebx
push 0xa
lea edx, [ebp - 0x34]
lea eax, [ebx + 1]
call fcn.004052ac
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x409fc0
call fcn.00402808
mov eax, dword [ebp - 0x30]
call fcn.004029b4
push eax
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_FindResourceA
mov edi, eax
push edi
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 4], eax
push edi
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409e96
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
jmp 0x409e9b
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
call fcn.00402568
mov eax, dword [ebp - 0x24]
cmp dword [eax + ebx*4], 0
jne 0x409ed4
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.004014a4
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00405428
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + ebx*4]
lea eax, [ebp - 0x10]
call fcn.00402808
jmp 0x409efd
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
call fcn.00409214
push dword [ebp - 0x10]
push 0x409fcc
mov eax, dword [ebp - 0x28]
push dword [eax + ebx*4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040287c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00409b54
mov eax, dword [ebp - 0x14]
cmp dword [eax + ebx*4], 0
jle 0x409f29
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004029b4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x1c]
cmp byte [eax + ebx], 0
je 0x409f58
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
call fcn.004029b4
push eax
push 0
push 1
mov eax, dword [ebp - 0x10]
call fcn.004029b4
mov ecx, eax
mov edx, 0x409fd0
xor eax, eax
call fcn.00405c24
mov eax, dword [ebp - 8]
call fcn.00403c0c
push edi
call sub.kernel32.dll_FreeResource
inc ebx
dec esi
jne 0x409e31
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fa6
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.0040258c
lea eax, [ebp - 0x2c]
mov edx, dword [0x4074f0]
call fcn.00402dd8
lea eax, [ebp - 0x10]
call fcn.00402568
ret