Function at 0x13a6b900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13abd120
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x2c]
cmp eax, esi
jle 0x13a6b93b
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov eax, dword [ebx + 0x14]
push ebp
push edi
mov edi, 0xffff
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
je 0x13a6bc0e
cmp dword [ebx + 0x1c], esi
jne 0x13a6b9e7
lea ecx, [esp + 0x24]
call fcn.13a88e10
mov ebp, dword [ebx + 0x14]
mov ecx, ebx
mov dword [esp + 0x58], esi
call fcn.13a6b8c0
mov esi, eax
test esi, esi
je 0x13a6b9aa
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x2c]
call fcn.13a88e30
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x24]
push ecx
push 0x13a6c3e0
push ebp
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x13a6bc18
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
test eax, 0xffff0000
mov dword [ebx + 0x1c], eax
je 0x13a6b9d6
lea esi, [ebx + 0x20]
push eax
mov ecx, esi
call fcn.13a2fb10
mov esi, dword [esi]
mov dword [ebx + 0x1c], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.13a88e20
cmp word [ebx + 0x24], 0xffff
jne 0x13a6babd
lea ecx, [esp + 0x24]
call fcn.13a889e0
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x14]
lea eax, [esp + 0x24]
mov dword [esp + 0x58], 1
push eax
push ecx
push edx
mov ecx, ebx
call fcn.13a6c1c0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x13a6bc2b
cmp eax, 1
jne 0x13a6ba38
mov eax, dword [esp + 0x24]
mov di, word [eax]
mov word [ebx + 0x24], 0
jmp 0x13a6baac
mov ebp, dword [esp + 0x24]
test eax, eax
jle 0x13a6ba9c
mov edx, ebp
mov esi, eax
mov cx, word [edx]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jne 0x13a6ba6c
mov ax, word [ebx + 0x24]
mov edi, eax
and edi, 0x3ff
cmp edi, 9
jne 0x13a6ba8e
cmp ax, cx
jae 0x13a6ba92
jmp 0x13a6ba8e
cmp ax, 4
jne 0x13a6ba92
mov ax, word [ebx + 0x24]
mov edi, eax
and edi, 0x3ff
cmp edi, 9
je 0x13a6ba92
cmp ax, 0xffff
je 0x13a6ba8e
cmp ax, cx
jae 0x13a6ba92
mov word [ebx + 0x24], cx
add edx, 2
dec esi
jne 0x13a6ba44
mov edi, dword [esp + 0x18]
cmp word [ebx + 0x24], 0xffff
jne 0x13a6baac
mov cx, word [ebp]
mov word [ebx + 0x24], cx
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.13a889f0
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x13a6baf2
mov eax, dword [ebx + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x13a6bad7
mov dword [ebx + 4], 0x57
jmp 0x13a6baf2
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [ebx + 0xc], eax
jne 0x13a6baf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov esi, dword [ebx + 0xc]
test esi, esi
mov dword [esp + 0x1c], esi
je 0x13a6bc3c
mov dx, word [ebx + 0x24]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x14]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebp, eax
test ebp, ebp
je 0x13a6bc3c
cmp word [ebx + 0x24], 0
jne 0x13a6bb31
cmp di, 0xffff
je 0x13a6bb31
mov word [ebx + 0x24], di
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x13a6bc3c
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x13a6bc3c
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x13a6bc3c
mov dword [esp + 0x14], 0
lea esi, [ebx + 0x28]
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.13a88620
mov esi, dword [esi]
push edi
push ebp
push esi
call fcn.13a6bc80
add esp, 0xc
test eax, eax
jne 0x13a6bc05
cmp dword [esp + 0x14], 1
je 0x13a6bc3c
mov esi, dword [esp + 0x1c]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], 0
and esi, 0xfffffffe
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x13a6bc3c
cmp ebp, esi
jb 0x13a6bc3c
mov eax, dword [esp + 0x40]
lea ecx, [eax + esi]
cmp ebp, ecx
ja 0x13a6bc3c
mov edx, dword [esp + 0x18]
add edx, ebp
cmp edx, ecx
jb 0x13a6bc3c
sub eax, ebp
add eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jge 0x13a6bc3c
mov edi, dword [esp + 0x18]
jmp 0x13a6bb76
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
jmp 0x13a6bc54
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x13a6bc3c
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.13a88e20
jmp 0x13a6bc3c
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.13a889f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x13a6bc54
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebx + 0x2c]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x50]
pop edi
pop ebp
pop esi
setg al
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret