Function at 0x10005af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x10027008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x420], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
mov byte [ebp - 4], 1
test eax, eax
je 0x10005d86
mov ecx, eax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005b70
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cdq
mov edi, eax
shld edx, edi, 1
add edi, edi
mov eax, edi
add eax, 0x80000000
adc edx, 0
mov dword [ebp - 0x434], edx
jne 0x10005c24
cmp eax, 0xffffffff
ja 0x10005c24
cmp edi, 0x400
jg 0x10005bc7
mov ecx, edi
call fcn.10004aa0
test al, al
je 0x10005bc7
mov eax, edi
call fcn.10019b00
mov dword [ebp - 0x10], esp
mov ebx, esp
jmp 0x10005bf2
or eax, 0xffffffff
sub eax, edi
cmp eax, 8
jb 0x10005c1a
lea eax, [edi + 8]
push eax
call fcn.1000dff9
add esp, 4
test eax, eax
je 0x10005c24
mov esi, eax
mov dword [eax], 0
mov dword [ebp - 0x428], esi
lea ebx, [eax + 8]
test ebx, ebx
je 0x10005c24
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x41c]
mov byte [ebx], 0
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
jmp 0x10005c26
push 0x80070216
call fcn.10002580
xor ebx, ebx
test ebx, ebx
je 0x10005d86
push 0x60
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x10005c67
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], eax
test edi, edi
jne 0x10005c67
call fcn.10004cf0
mov ebx, eax
jmp 0x10005d56
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x10005c8a
call fcn.10004cf0
jmp 0x10005d49
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x10005ca6
call fcn.10004cf0
jmp 0x10005d49
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x10005cc7
mov ebx, 0x8007000e
jmp 0x10005d4b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10009560
mov dword [ebp - 4], 1
jmp 0x10005cff
cmp dword [ebp - 0x418], 0
jne 0x10005d0f
mov ebx, 0x8007000e
jmp 0x10005d4b
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x418]
call fcn.1000d3bc
push eax
call fcn.10004c50
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
add esp, 0x14
mov byte [eax + ebx], 0
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call fcn.10006e70
mov ebx, eax
test edi, edi
je 0x10005d56
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10005d6f
lea ecx, [ebp - 0x418]
call fcn.10009770
test esi, esi
je 0x10005d82
push esi
mov esi, dword [esi]
call fcn.1000ddcb
add esp, 4
test esi, esi
jne 0x10005d73
mov eax, ebx
jmp 0x10005db7
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10005d9f
lea ecx, [ebp - 0x418]
call fcn.10009770
test esi, esi
je 0x10005db2
push esi
mov esi, dword [esi]
call fcn.1000ddcb
add esp, 4
test esi, esi
jne 0x10005da3
mov eax, 0x8007000e
lea esp, [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000d362
mov esp, ebp
pop ebp
ret 0x10