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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x40], 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 [0x407250]
call fcn.004045ac
xor eax, eax
push ebp
push 0x40afc2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x40afd0
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x40af91
push edi
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40af91
push edi
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40af91
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.00405550
add dword [ebp - 0xc], 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
jbe 0x40addd
push ebx
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x407160]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x407188]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4071b0]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x4071d8]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x407200]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x407228]
call fcn.00404dfc
add esp, 4
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x40ad17
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x28]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0xc]
call fcn.00403fa0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ebx*4]
call fcn.00404044
inc eax
add dword [ebp - 0xc], eax
inc ebx
dec esi
jne 0x40acf6
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x40ad43
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x24]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0xc]
call fcn.00403fa0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
call fcn.00404044
inc eax
add dword [ebp - 0xc], eax
inc ebx
dec esi
jne 0x40ad22
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x40ad67
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x20]
add eax, ebx
mov ecx, 1
mov edx, dword [ebp - 0xc]
call fcn.00405550
inc dword [ebp - 0xc]
inc ebx
dec esi
jne 0x40ad4e
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x40ad8b
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov ecx, 1
mov edx, dword [ebp - 0xc]
call fcn.00405550
inc dword [ebp - 0xc]
inc ebx
dec esi
jne 0x40ad72
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x40adb7
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
lea eax, [eax + ebx*4]
mov edx, dword [ebp - 0xc]
call fcn.00403fa0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
call fcn.00404044
inc eax
add dword [ebp - 0xc], eax
inc ebx
dec esi
jne 0x40ad96
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x40addd
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.00405550
add dword [ebp - 0xc], 4
inc ebx
dec esi
jne 0x40adc2
mov eax, dword [ebp - 8]
call fcn.00405560
push edi
call sub.kernel32.dll_FreeResource
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x40af91
inc esi
xor ebx, ebx
push 0xa
lea edx, [ebp - 0x34]
lea eax, [ebx + 1]
call fcn.00405dc0
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x40afe0
call fcn.00404090
mov eax, dword [ebp - 0x30]
call fcn.00404244
push eax
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_FindResourceA
mov edi, eax
push edi
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 4], eax
push edi
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ae5f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
jmp 0x40ae64
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
call fcn.00403da8
mov eax, dword [ebp - 0x24]
cmp dword [eax + ebx*4], 0
jne 0x40ae9d
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.00402be8
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00405f3c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + ebx*4]
lea eax, [ebp - 0x10]
call fcn.00404090
jmp 0x40aedc
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
call fcn.00409cfc
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.00405ab4
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x10]
call fcn.00403e40
push dword [ebp - 0x10]
push 0x40afec
mov eax, dword [ebp - 0x28]
push dword [eax + ebx*4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404104
mov eax, dword [ebp - 0x10]
call fcn.00405fe8
test al, al
je 0x40af20
mov eax, dword [ebp - 0x20]
cmp byte [eax + ebx], 0
je 0x40af10
push 0x34
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ebx*4]
call fcn.00404244
push eax
push 0x40aff0
push 0
call sub.user32.dll_MessageBoxA_1
cmp eax, 7
je 0x40af7b
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040aadc
jmp 0x40af2e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040aadc
mov eax, dword [ebp - 0x14]
cmp dword [eax + ebx*4], 0
jle 0x40af4c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404244
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x1c]
cmp byte [eax + ebx], 0
je 0x40af7b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
call fcn.00404244
push eax
push 0
push 1
mov eax, dword [ebp - 0x10]
call fcn.00404244
mov ecx, eax
mov edx, 0x40b028
xor eax, eax
call fcn.004067b4
mov eax, dword [ebp - 8]
call fcn.00405560
push edi
call sub.kernel32.dll_FreeResource
inc ebx
dec esi
jne 0x40adfa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40afc9
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00403dcc
lea eax, [ebp - 0x2c]
mov edx, dword [0x407250]
call fcn.00404670
lea eax, [ebp - 0x10]
call fcn.00403da8
ret