Function at 0x10010042
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x1001c9eb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1003e4c0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
xor ebx, ebx
mov edi, dword [ebp + 0x410]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1001022a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100100b8
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10006110
add esp, 0xc
test eax, eax
js 0x1001022a
mov esi, dword [ebp - 0x14]
cmp esi, 0x400
jg 0x10010108
push esi
call fcn.10008c2f
pop ecx
test al, al
je 0x10010108
mov eax, esi
call fcn.1001a260
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10010111
push esi
lea ecx, [ebp - 0x20]
call fcn.100075dc
push 3
push esi
push edi
push eax
call fcn.1001a978
mov esi, eax
test esi, esi
je 0x10010227
push 0x60
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x10010157
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x10010157
call fcn.1000c80d
mov esi, eax
jmp 0x10010215
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10010174
call fcn.1000c80d
jmp 0x10010208
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001016a
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x1c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001019e
mov esi, 0x8007000e
jmp 0x1001020a
push 1
push eax
mov byte [ebp - 4], 2
call fcn.1001a978
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x100101be
push eax
lea ecx, [ebp]
call fcn.1000c20e
jmp 0x100101d4
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x100101d4
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x10010197
push esi
push dword [ebp - 0x18]
push esi
push dword [ebp]
call fcn.10011d9b
mov eax, dword [ebp]
lea ecx, [ebp - 0x28]
add esp, 0x10
mov byte [eax + esi], bl
push dword [ebp + 0x41c]
push dword [ebp]
call fcn.1000ff1a
mov esi, eax
test edi, edi
je 0x10010215
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1001023e
lea ecx, [ebp]
call fcn.1000da1e
jmp 0x1001023e
mov ebx, dword [ebp]
lea eax, [ebp + 4]
cmp ebx, eax
je 0x10010239
lea ecx, [ebp]
call fcn.1000da1e
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.10006d4d
mov eax, esi
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.10019a3d
add ebp, 0x408
leave
ret 0x10