Function at 0x70b650b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
xor edi, edi
mov dword [esp + 0x10], 0x70bb87a8
mov dword [esp + 0x1c], esi
mov eax, dword [0x70bb8790]
test eax, eax
jne 0x70b6514c
mov ecx, dword [0x70bd8d90]
xor eax, eax
mov ax, word [esi + 0x70bcd518]
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x70bd8d90]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x18], eax
je 0x70b65331
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [edi + 8]
mov dword [esi + 0x70bb87a0], eax
mov eax, dword [edi + 4]
test eax, eax
jge 0x70b65122
neg eax
mov ecx, dword [esp + 0x10]
xor ebp, ebp
mov dword [ecx], eax
mov bp, word [edi + 0xe]
imul ebp, dword [edi + 4]
add ebp, 0x18
add eax, 3
sar ebp, 3
and ebp, 0xfffffffc
and al, 0xfc
mov dword [esp + 0x20], ebp
mov dword [esi + 0x70bb8798], eax
jmp 0x70b65150
mov ebp, dword [esp + 0x20]
mov eax, dword [esi + str.Hp_pIVI50_TooNewVersionErrorBitmap]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esi + 0x70bb8798]
imul eax, dword [esi + 0x70bb87a0]
lea ecx, [eax + eax*2]
push ecx
call fcn.70bf7e0f
mov ecx, dword [esi + 0x70bb87a0]
mov ebx, dword [esi + 0x70bb8798]
imul ebx, ecx
add esp, 0xc
mov dword [esi + 0x70bd4300], eax
lea ecx, [ebx + eax]
mov dword [esp + 0x34], ebx
test eax, eax
lea edx, [ebx + ecx]
mov dword [esi + 0x70bd4308], ecx
mov dword [esi + 0x70bd4310], edx
je 0x70b65331
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x70b652f9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x70b652f9
test edi, edi
je 0x70b652f9
mov edx, dword [edi + 8]
mov ecx, dword [edi]
imul edx, ebp
add edx, edi
add edx, ecx
mov cx, word [edi + 0xe]
cmp cx, 8
jne 0x70b651e4
add edx, 0x400
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x70bb87a0]
test eax, eax
mov dword [esp + 0x24], 0
jbe 0x70b652ee
jmp 0x70b65208
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub edx, ebp
mov dword [esp + 0x2c], edx
mov ebp, edx
xor edx, edx
cmp dword [eax], edx
jbe 0x70b652c1
cmp cx, 8
jne 0x70b65267
xor ecx, ecx
xor ebx, ebx
mov cl, byte [ebp]
lea eax, [edi + ecx*4]
mov ecx, dword [edi]
mov ecx, dword [eax + ecx]
mov eax, ecx
mov dword [esp + 0x30], ecx
mov bl, byte [esp + 0x32]
and eax, 0xff
mov eax, dword [eax*4 + 0x70bbcad8]
add eax, dword [ebx*4 + 0x70bbc2d8]
xor ebx, ebx
mov bl, ch
mov ecx, dword [ebx*4 + 0x70bbc6d8]
mov ebx, dword [esp + 0x34]
add eax, ecx
jmp 0x70b65293
xor ecx, ecx
xor eax, eax
mov cl, byte [ebp + 2]
mov al, byte [ebp + 1]
mov dword [esp + 0x30], eax
mov eax, dword [ecx*4 + 0x70bbc2d8]
mov ecx, dword [esp + 0x30]
add eax, dword [ecx*4 + 0x70bbc6d8]
xor ecx, ecx
mov cl, byte [ebp]
add eax, dword [ecx*4 + 0x70bbcad8]
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
mov byte [esi + ebx], al
shr eax, 8
mov byte [esi + ebx*2], al
mov cx, word [edi + 0xe]
mov eax, ecx
inc esi
and eax, 0xffff
shr eax, 3
add ebp, eax
mov eax, dword [esp + 0x10]
inc edx
cmp edx, dword [eax]
jb 0x70b65222
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edx, dword [eax + 0x70bb8798]
add esi, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov esi, dword [eax + 0x70bb87a0]
inc edx
cmp edx, esi
mov dword [esp + 0x24], edx
jb 0x70b65200
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x10]
add esi, 4
add ecx, 4
cmp esi, 8
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ecx
jb 0x70b650cb
call fcn.70b31200
mov eax, dword [0x70bb8790]
inc eax
mov dword [0x70bb8790], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x28
ret