Function at 0x782bb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xdc
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 6
mov ebx, 0x10
mov dword [ebp - 0x7c], eax
mov al, 1
test al, 1
mov byte [ebp - 0x7d], al
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], esi
jne 0x782c0a
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov cl, byte [ebp - 0x7d]
test cl, 1
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], edx
jne 0x782c30
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov cl, byte [ebp - 0x7d]
test cl, 1
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], edx
jne 0x782c56
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov cl, byte [ebp - 0x7d]
test cl, 1
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], edx
jne 0x782c79
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0xb0], eax
mov eax, edx
cdq
mov esi, dword [ebp - 0x8c]
idiv esi
add eax, 1
mov di, ax
movzx eax, di
mov ebx, esp
mov dword [ebx + 4], eax
mov dword [ebx], ecx
mov dword [ebx + 8], 6
call sub.KERNEL32.DLL_FindResourceA
sub esp, 0xc
lea ecx, [ebp - 0x44]
lea esi, [0x780834]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], esi
mov esi, 0x7b6244
mov dword [ebp - 0x24], esi
mov esi, ebp
mov dword [ebp - 0x20], esi
mov esi, esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x782ee0
mov dword [ebp - 0xb4], eax
mov eax, ecx
call fcn.007811a9
mov eax, dword [ebp - 0xb4]
cmp eax, 0
je 0x782ea0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_LoadResource
sub esp, 8
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x782e9e
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_LockResource
sub esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x782e82
mov eax, 0x10
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0xb8], eax
mov eax, ecx
cdq
mov ecx, dword [ebp - 0xb8]
idiv ecx
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x64]
mov ecx, eax
add ecx, 2
mov dword [ebp - 0x64], ecx
movzx eax, word [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
mov ecx, eax
add ecx, 0xffffffff
mov dword [ebp - 0x6c], ecx
cmp eax, 0
je 0x782db6
jmp 0x782da8
mov eax, dword [ebp - 0x68]
shl eax, 1
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x64], eax
jmp 0x782d85
cmp dword [ebp - 0x68], 0
je 0x782e80
cmp dword [ebp - 0x68], 0
jbe 0x782e55
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x3c], 0xffffffff
mov esi, esp
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x70]
mov dword [esi], eax
mov dword [ebp - 0xbc], eax
call fcn.00781bb4
mov dword [ebp - 0x3c], 1
mov eax, esp
mov ecx, dword [ebp - 0xbc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xb0]
mov dword [eax], edx
call fcn.00781e6c
mov dword [ebp - 0xc0], eax
jmp 0x782e23
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.00781ea4
jmp 0x782e7e
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00781a98
mov dword [ebp - 0xcc], eax
jmp 0x782e80
jmp 0x782e82
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_FreeResource
sub esp, 4
mov dword [ebp - 0xd0], eax
jmp 0x782ea0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0xd4], ecx
call fcn.007811ca
mov eax, dword [ebp - 0xd4]
add esp, 0xdc
pop esi
pop edi
pop ebx
pop ebp
ret