Function at 0x100350b0
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], 0x100887a8
mov dword [esp + 0x1c], esi
mov eax, dword [0x10088790]
test eax, eax
jne 0x1003514c
mov ecx, dword [0x100a8d90]
xor eax, eax
mov ax, word [esi + 0x1009d518]
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x100a8d90]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x18], eax
je 0x10035331
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [edi + 8]
mov dword [esi + 0x100887a0], eax
mov eax, dword [edi + 4]
test eax, eax
jge 0x10035122
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 + 0x10088798], eax
jmp 0x10035150
mov ebp, dword [esp + 0x20]
mov eax, dword [esi + 0x1009d520]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esi + 0x10088798]
imul eax, dword [esi + 0x100887a0]
lea ecx, [eax + eax*2]
push ecx
call fcn.10040eb0
mov ecx, dword [esi + 0x100887a0]
mov ebx, dword [esi + 0x10088798]
imul ebx, ecx
add esp, 0xc
mov dword [esi + 0x100a4300], eax
lea ecx, [ebx + eax]
mov dword [esp + 0x34], ebx
test eax, eax
lea edx, [ebx + ecx]
mov dword [esi + 0x100a4308], ecx
mov dword [esi + 0x100a4310], edx
je 0x10035331
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x100352f9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100352f9
test edi, edi
je 0x100352f9
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 0x100351e4
add edx, 0x400
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x100887a0]
test eax, eax
mov dword [esp + 0x24], 0
jbe 0x100352ee
jmp 0x10035208
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 0x100352c1
cmp cx, 8
jne 0x10035267
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 + 0x1008cad8]
add eax, dword [ebx*4 + 0x1008c2d8]
xor ebx, ebx
mov bl, ch
mov ecx, dword [ebx*4 + 0x1008c6d8]
mov ebx, dword [esp + 0x34]
add eax, ecx
jmp 0x10035293
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 + 0x1008c2d8]
mov ecx, dword [esp + 0x30]
add eax, dword [ecx*4 + 0x1008c6d8]
xor ecx, ecx
mov cl, byte [ebp]
add eax, dword [ecx*4 + 0x1008cad8]
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 0x10035222
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edx, dword [eax + 0x10088798]
add esi, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov esi, dword [eax + 0x100887a0]
inc edx
cmp edx, esi
mov dword [esp + 0x24], edx
jb 0x10035200
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 0x100350cb
call fcn.10001200
mov eax, dword [0x10088790]
inc eax
mov dword [0x10088790], 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