Function at 0x401af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [0x41d8e4]
push ebx
push esi
push edi
push 0xa
push 1
push eax
mov dword [esp + 0x18], 0
call dword [0x41c258]
mov esi, eax
test esi, esi
je 0x401e57
mov ecx, dword [0x41d8e4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e57
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401e57
mov edx, dword [0x41d8e4]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.00407ce7
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
je 0x401e6e
push esi
push edi
push eax
call fcn.00407db0
shr esi, 1
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00401140
mov edi, dword [esp + 0x20]
push 0xa
push edi
call fcn.00407b5a
add esp, 0x1c
test eax, eax
je 0x401e5d
mov ebx, dword [esp + 0x14]
mov esi, ebx
mov word [eax], 0
mov ecx, edi
sub esi, edi
lea ecx, [ecx]
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401ba0
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0x190]
mov word [eax], 0
mov ecx, edi
sub esi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401bd4
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0x1f4]
mov word [eax], 0
mov ecx, edi
sub esi, edi
jmp 0x401c10
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401c10
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0x2bc]
mov word [eax], 0
mov ecx, edi
sub esi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401c44
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0x2d0]
mov word [eax], 0
mov ecx, edi
sub esi, edi
jmp 0x401c80
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401c80
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0x398]
mov word [eax], 0
mov ecx, edi
sub esi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401cb4
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0x3c0]
mov word [eax], 0
mov ecx, edi
sub esi, edi
jmp 0x401cf0
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401cf0
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0x488]
mov word [eax], 0
mov ecx, edi
sub esi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401d24
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0xda0]
mov word [eax], 0
mov ecx, edi
sub esi, edi
jmp 0x401d60
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401d60
lea edi, [eax + 2]
push 0xa
push edi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e5d
lea esi, [ebx + 0xf30]
mov word [eax], 0
mov ecx, edi
sub esi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401d94
push ebp
lea ebp, [ebx + 0x5a0]
lea esi, [eax + 2]
mov word [ebp], dx
cmp word [esi], dx
je 0x401e21
push 0xa
push esi
call fcn.00407b5a
add esp, 8
test eax, eax
je 0x401e01
lea edi, [ebx + 0x550]
mov word [eax], 0
mov ecx, esi
sub edi, esi
movzx edx, word [ecx]
mov word [edi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401dd4
add eax, 2
cmp word [eax], dx
je 0x401e3f
mov edx, ebp
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401df0
jmp 0x401e3f
lea edx, [ebx + 0x550]
mov eax, esi
sub edx, esi
jmp 0x401e10
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401e10
jmp 0x401e3f
lea eax, [ebx + 0x2d0]
lea edx, [ebx + 0x550]
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401e30
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00407c0a
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401e6e
push eax
call fcn.00407c0a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret