Function at 0x10001b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x94
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
xor edi, edi
cmp ebp, edi
jne 0x10001b78
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x94
ret
mov esi, dword [esp + 0xa8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x10001ba2
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x94
ret
push ebx
lea ecx, [esp + 0x2c]
push 0xa
push ecx
push esi
call fcn.10001a90
mov esi, eax
mov eax, 1
add esp, 0xc
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
jmp 0x10001bd6
xor edi, edi
push 3
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x10001c86
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x10001c86
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10001c86
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [edi], 0x28
jne 0x10001c86
xor eax, eax
test esi, esi
jle 0x10001c6f
mov edx, dword [edi + 8]
lea ecx, [esp + 0x2c]
cmp dword [ecx], edx
je 0x10001c2f
inc eax
add ecx, 0xc
cmp eax, esi
jl 0x10001c21
jmp 0x10001c6f
lea esi, [eax + eax*2]
push ebx
push ebp
shl esi, 2
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor edx, edx
push eax
mov dx, word [esp + esi + 0x34]
mov eax, dword [esp + 0x18]
push edi
push 0
push edx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
je 0x10001c6b
mov eax, dword [esp + 0x10]
mov dword [esp + esi + 0x34], 1
inc eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x20]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x10001c86
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 0xa
mov dword [esp + 0x28], eax
jle 0x10001bd4
test esi, esi
jle 0x10001cd8
lea edi, [esp + 0x30]
mov eax, dword [edi + 4]
test eax, eax
jne 0x10001cd2
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x10001cd2
mov ecx, dword [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor edx, edx
push eax
mov dx, word [edi]
mov eax, dword [esp + 0x18]
push ebx
push 0
push edx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
add edi, 0xc
dec esi
jne 0x10001ca0
push 0x10
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001d2b
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001d2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10001d2b
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebp
call esi
push edi
push ebp
call esi
mov ecx, dword [esp + 0x14]
push eax
push ebx
push 0
push 1
push 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
je 0x10001d2b
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x10001d41
mov edx, dword [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x94
ret