Function at 0x102d73c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x28
test eax, eax
je 0x102d73d1
and dword [eax], 0
push ebx
movzx ebx, word [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
mov edi, dword [ebp + 8]
push 0x3e6
push ebx
push edi
call esi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x102d745e
push 2
push ebx
push edi
call esi
test eax, eax
jne 0x102d7402
xor eax, eax
jmp 0x102d7851
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x102d73fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x102d73fb
push edi
call fcn.102d7027
mov esi, dword [ebp + 0x10]
mov ebx, eax
test esi, esi
je 0x102d743d
cmp dword [ebp + 0x14], ebx
jae 0x102d7449
push 0xa
mov esi, edi
mov edi, dword [ebp + 0x10]
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x102d73fb
push ebx
call fcn.102ea79d
mov esi, eax
test esi, esi
je 0x102d73fb
push ebx
push edi
push esi
call fcn.102f7ffa
add esp, 0xc
mov dword [esi + 0x14], ebx
mov eax, esi
jmp 0x102d7851
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x102d73fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
and dword [ebp - 4], 0
mov ebx, eax
movzx eax, word [ebx + 4]
xor edi, edi
inc edi
cmp ax, di
jne 0x102d750b
movzx eax, byte [ebx + 6]
mov dword [ebp - 4], eax
test eax, eax
jne 0x102d7499
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.102d33fc
movzx eax, word [ebx]
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
push 3
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.101f0614
mov esi, dword [eax]
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
and esi, 0xfffffffc
call fcn.102d7352
push dword [eax]
lea eax, [ebp - 0x18]
push eax
push 0x28
lea eax, [ebp - 0x1c]
push eax
movzx eax, word [ebx + 2]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.102d7325
add esp, 0xc
mov ecx, eax
call fcn.101f6418
mov ecx, eax
call fcn.10258876
mov esi, dword [eax]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x10], 8
jmp 0x102d76c7
cmp ax, 2
jne 0x102d759e
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.102d33fc
movzx eax, word [ebx]
pop ecx
pop ecx
push 3
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x20]
push eax
push 8
lea eax, [ebp - 0x1c]
push eax
push 7
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0xc]
call fcn.101f0614
mov ecx, eax
call fcn.102d7377
mov ecx, eax
call fcn.101f0614
mov esi, dword [eax]
push 2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
and esi, 0xfffffffc
call fcn.102d7352
push dword [eax]
lea eax, [ebp - 8]
push eax
push 0x28
lea eax, [ebp - 0x24]
push eax
movzx eax, word [ebx + 2]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.102d7325
add esp, 0xc
mov ecx, eax
call fcn.101f6418
mov ecx, eax
call fcn.10258876
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
mov esi, eax
jmp 0x102d76c7
cmp ax, 0x20
je 0x102d7637
cmp ax, 0x18
je 0x102d7637
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.102d33fc
movzx eax, word [ebx]
pop ecx
pop ecx
push 3
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x28]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.101f0614
mov ecx, eax
call fcn.102d7377
mov ecx, eax
call fcn.101f0614
mov esi, dword [eax]
push 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
and esi, 0xfffffffc
call fcn.102d7352
push dword [eax]
lea eax, [ebp - 0x18]
push eax
push 0x28
lea eax, [ebp - 0x14]
push eax
movzx eax, word [ebx + 2]
push esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.102d7325
add esp, 0xc
mov ecx, eax
call fcn.101f6418
mov ecx, eax
call fcn.10258876
mov dword [ebp - 0x10], 4
jmp 0x102d7592
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.102d33fc
movzx eax, word [ebx]
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
push 3
lea eax, [ebp - 0x28]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
movzx eax, word [ebx + 4]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.102d739c
mov ecx, eax
call fcn.102d7377
mov ecx, eax
call fcn.101f0614
mov esi, dword [eax]
push 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
and esi, 0xfffffffc
call fcn.102d7352
push dword [eax]
lea eax, [ebp - 0x18]
push eax
push 0x28
lea eax, [ebp - 0x14]
push eax
movzx eax, word [ebx + 2]
push esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.102d7325
add esp, 0xc
mov ecx, eax
call fcn.101f6418
mov ecx, eax
call fcn.10258876
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x102d76d3
mov dword [ebp - 8], edi
jmp 0x102d76e6
push esi
call fcn.102ea79d
mov dword [ebp - 8], eax
test eax, eax
je 0x102d73fb
mov edi, eax
mov edx, dword [ebp - 0x10]
mov dword [edi], 0x28
movzx eax, word [ebx]
mov dword [edi + 4], eax
movzx eax, word [ebx + 2]
mov dword [edi + 8], eax
xor eax, eax
inc eax
xor ecx, ecx
mov word [edi + 0xc], ax
mov eax, dword [ebp - 4]
mov word [edi + 0xe], dx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
cmp dword [ebp + 0x10], ecx
je 0x102d772c
cmp dword [ebp + 0x14], esi
jb 0x102d73fb
cmp eax, ecx
je 0x102d7780
shl eax, 2
push eax
mov dword [ebp + 0x10], eax
lea eax, [ebx + 7]
push eax
lea eax, [edi + 0x28]
push eax
call fcn.102f7ffa
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 0x28]
add esp, 0xc
sub esi, eax
push esi
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0xfffffffffffffff9
mov ecx, eax
mov eax, dword [ebp + 0x10]
pop edx
sub edx, eax
add ecx, edx
push ecx
mov ecx, dword [ebp + 0x14]
add ecx, edi
push ecx
lea eax, [eax + ebx + 7]
push eax
jmp 0x102d784a
cmp dx, 1
jne 0x102d77b2
mov eax, dword [0x1004b3d0]
add esi, 0xffffffd0
push esi
push dword [ebp - 0xc]
mov dword [edi + 0x28], eax
mov eax, dword [0x1004b3d4]
push dword [ebp + 8]
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 6
push eax
lea eax, [edi + 0x30]
jmp 0x102d7845
movzx eax, word [ebx + 4]
cmp ax, 3
jne 0x102d77f3
mov eax, dword [ebp + 0xc]
push 0x10
pop ecx
add eax, 0xffffff98
push eax
push dword [ebp - 0xc]
lea esi, [ebx + 7]
push dword [ebp + 8]
add edi, 0x28
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 6
push eax
mov eax, dword [ebp - 8]
add eax, 0x68
add ebx, 0x47
push eax
push ebx
call fcn.102d70b7
mov edi, dword [ebp - 8]
jmp 0x102d784f
cmp ax, 0x20
je 0x102d782e
cmp ax, 0x18
je 0x102d782e
mov eax, dword [ebp + 0xc]
push 0x10
pop ecx
add eax, 0xffffff98
push eax
push dword [ebp - 0xc]
add edi, 0x28
push dword [ebp + 8]
mov esi, 0x1004b390
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 6
push eax
mov eax, dword [ebp - 8]
add eax, 0x68
add ebx, 6
jmp 0x102d77e7
add esi, 0xffffffd8
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 6
push eax
lea eax, [edi + 0x28]
push eax
add ebx, 6
push ebx
call fcn.102d70b7
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10