Function at 0x41af8a
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440cd9
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x448138]
xor eax, esp
mov dword [esp + 0x570], eax
push ebx
push esi
push edi
mov eax, dword [0x448138]
xor eax, esp
push eax
lea eax, [esp + 0x588]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push ebx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov dword [esp + 0xd4], 0xf
call fcn.00408384
lea eax, [esp + 0xb8]
push eax
push 0x405b00
mov dword [esp + 0x598], ebx
push 0x2a
mov dword [esp + 0x24], ebx
call fcn.00422b34
add esp, 0xc
test al, al
jne 0x41b035
push ebx
push 1
lea ecx, [esp + 0xc0]
call fcn.00408339
mov al, 1
jmp 0x41b251
cmp dword [esp + 0xd0], 0x10
mov eax, dword [esp + 0xbc]
jae 0x41b04d
lea eax, [esp + 0xbc]
push 0xa
push ebx
push eax
call fcn.0042b791
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x41b01f
push 0x3ff
lea eax, [esp + 0x181]
push ebx
push eax
mov byte [esp + 0x188], bl
call fcn.00432e00
add esp, 0xc
mov ecx, 0x400
lea eax, [esp + 0x17c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x41b08a
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jle 0x41b22c
push 0x405b08
lea ecx, [esp + 0xf4]
call fcn.00408751
push 0xa
push 0x400
lea eax, [esp + 0x184]
push eax
push dword [esp + 0x28]
mov byte [esp + 0x5a0], 1
call fcn.0042c74e
add esp, 0x10
neg eax
sbb eax, eax
not eax
lea ecx, [esp + 0x17c]
and eax, ecx
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.0040abe5
push ebx
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], 0xf
call fcn.00408384
mov byte [esp + 0x590], 2
cmp dword [esp + 0x108], 0x10
mov eax, dword [esp + 0xf4]
jae 0x41b127
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x80]
push ecx
push eax
push 0x2a
call fcn.00422b34
add esp, 0xc
test al, al
je 0x41b1f5
push 0x405b10
lea ecx, [esp + 0xa0]
call fcn.00408751
lea eax, [esp + 0x17c]
push eax
lea eax, [esp + 0xa0]
push eax
mov byte [esp + 0x598], 3
call fcn.0040abe5
cmp dword [esp + 0xb4], 0x10
mov eax, dword [esp + 0xa0]
jae 0x41b188
lea eax, [esp + 0xa0]
push 0x2a
push eax
push dword [0x44a45c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x41b1e6
push esi
push dword [0x44a45c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x41b1e6
push esi
push dword [0x44a45c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
jbe 0x41b1cc
mov dword [esp + 0x18], esi
jmp 0x41b27d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x41b275
push esi
push eax
push ebx
call fcn.0042ff10
add esp, 0xc
push ebx
push 1
lea ecx, [esp + 0xa4]
call fcn.00408339
push ebx
push 1
lea ecx, [esp + 0x88]
call fcn.00408339
push ebx
push 1
lea ecx, [esp + 0xf8]
mov byte [esp + 0x598], bl
call fcn.00408339
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jl 0x41b09e
mov eax, dword [esp + 0x24]
call fcn.00414f8d
cmp eax, dword [esp + 0x20]
push ebx
push 1
lea ecx, [esp + 0xc0]
sete byte [esp + 0x1f]
call fcn.00408339
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x588]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x570]
xor ecx, esp
call fcn.0042acb7
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x17]
push eax
lea esi, [esp + 0x38]
mov byte [esp + 0x1b], bl
call fcn.00420e4d
cmp dword [esp + 0xb4], 0x10
mov edi, dword [esp + 0xa0]
jae 0x41b2ab
lea edi, [esp + 0xa0]
push ebx
lea esi, [esp + 0x38]
call fcn.00420b88
push eax
push edi
push 0x2a
lea esi, [esp + 0x24]
call fcn.00422aa1
add esp, 0xc
push 7
pop esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
mov byte [esp + 0x590], 6
cmp dword [esp + 0x98], 0x10
mov eax, dword [esp + 0x84]
jae 0x41b30b
lea eax, [esp + 0x84]
lea ecx, [esp + 0xd4]
push ecx
push eax
call fcn.00424702
cmp dword [esp + 0xf4], 8
pop ecx
pop ecx
mov ecx, dword [esp + 0xd8]
jae 0x41b333
lea ecx, [esp + 0xd8]
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 8
jb 0x41b342
mov eax, dword [eax + 4]
jmp 0x41b345
add eax, 4
push ebx
lea edx, [esp + 0x68]
push edx
mov ebx, eax
xor edi, edi
call fcn.00427113
pop ecx
pop ecx
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], edi
mov word [esp + 0x110], di
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], edi
mov word [esp + 0x12c], di
mov dword [esp + 0x15c], esi
mov dword [esp + 0x158], edi
mov word [esp + 0x148], di
push 8
mov byte [esp + 0x594], 9
mov eax, dword [esp + 0x6c]
pop esi
cmp dword [esp + 0x7c], esi
jae 0x41b3b1
lea eax, [esp + 0x68]
push edi
push edi
lea ecx, [esp + 0x130]
push ecx
push eax
lea ecx, [esp + 0x11c]
call fcn.00427014
mov ebx, dword [esp + 0x13c]
add esp, 0x10
cmp dword [esp + 0x140], esi
jae 0x41b3e2
lea ebx, [esp + 0x12c]
cmp dword [esp + 0x124], esi
mov eax, dword [esp + 0x110]
jae 0x41b3f9
lea eax, [esp + 0x110]
push edi
lea ecx, [esp + 0x148]
push ecx
xor ecx, ecx
mov edi, eax
call fcn.00427113
cmp dword [esp + 0x164], esi
mov eax, dword [esp + 0x150]
pop ecx
pop ecx
jae 0x41b424
lea eax, [esp + 0x148]
push eax
call fcn.00426d44
cmp dword [esp + 0x80], esi
mov eax, dword [esp + 0x6c]
pop ecx
jae 0x41b43c
lea eax, [esp + 0x68]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [0x449734]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b483
push ebx
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
lea esi, [esp + 0x40]
push ebx
mov dword [esp + 0x3c], ebx
call fcn.00420b88
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x41b535
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x80]
push eax
call fcn.0040f0ab
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x64]
push eax
call fcn.00417170
cmp edi, 0xffffffff
je 0x41b4ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push ebx
inc edi
push edi
lea esi, [esp + 0x14c]
call fcn.00408d21
push ebx
push edi
lea esi, [esp + 0x130]
call fcn.00408d21
push ebx
push edi
lea esi, [esp + 0x114]
call fcn.00408d21
push ebx
push edi
lea esi, [esp + 0xdc]
call fcn.00408d21
push ebx
push edi
lea esi, [esp + 0x6c]
call fcn.00408d21
lea esi, [esp + 0x34]
call fcn.00420b6d
push ebx
push edi
lea ecx, [esp + 0xa4]
call fcn.00408339
push ebx
push edi
lea ecx, [esp + 0x88]
call fcn.00408339
push ebx
push edi
lea ecx, [esp + 0xf8]
mov byte [esp + 0x598], bl
call fcn.00408339
xor ebx, ebx
jmp 0x41b21a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea ecx, [esp + 0x164]
mov dword [esp + 0x17c], 0xf
call fcn.00408384
mov byte [esp + 0x590], 0xa
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x41b573
lea eax, [esp + 0x68]
lea ecx, [esp + 0x160]
push ecx
push eax
call fcn.00424680
cmp dword [esp + 0x180], 0x10
pop ecx
pop ecx
mov ecx, dword [esp + 0x164]
jae 0x41b59b
lea ecx, [esp + 0x164]
cmp dword [esp + 0x98], 0x10
mov eax, dword [esp + 0x84]
jae 0x41b5b3
lea eax, [esp + 0x84]
push ecx
push eax
push 0x58f
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0040897e
add esp, 0x14
push 0x443060
lea eax, [esp + 0x48]
push eax
call fcn.0042d76b
int3