Function at 0x10207dde
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
call fcn.10207631
mov eax, dword [ebp + 8]
mov edx, dword [eax]
xor ebx, ebx
cmp edx, ebx
je 0x1020819b
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jl 0x1020819b
cmp ecx, dword [0x103a5b70]
jge 0x1020819b
mov esi, dword [0x103a5b60]
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0x10], bl
jne 0x10207e4e
imul ecx, ecx, 0x14
mov edi, dword [ecx + esi + 4]
mov dword [ebp - 4], ecx
cmp edi, ebx
je 0x10207e4e
mov eax, dword [ebp + 0x18]
imul eax, eax, 3
mov al, byte [eax + edi]
cmp al, bl
je 0x10207e4e
movzx eax, al
imul eax, eax, 0x14
lea edi, [eax + edx - 0x14]
mov dword [ebp + 0xc], edi
mov byte [ebp + 0xb], 1
jmp 0x10207e60
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x14
mov dword [ebp - 4], eax
mov ecx, eax
add eax, edx
mov dword [ebp + 0xc], eax
mov edi, eax
cmp dword [edi + 0xc], ebx
jne 0x10208197
cmp byte [ebp + 0x10], bl
je 0x10207e76
cmp dword [edi], ebx
jne 0x10208197
mov eax, dword [0x103a5b98]
cmp eax, 1
jne 0x10207e83
mov byte [ebp + 0x10], al
add ecx, esi
mov edi, dword [ecx]
mov esi, edi
cmp byte [ebp + 0x10], bl
je 0x10207e96
lea esi, [edi + 0x301]
jmp 0x10207ea4
cmp eax, ebx
je 0x10207ea4
mov esi, eax
imul esi, esi, 0x301
add esi, edi
cmp byte [ebp + 0xb], bl
je 0x10207eca
mov edx, dword [ebp + 0x18]
mov ecx, dword [ecx + 4]
imul edx, edx, 3
movzx ecx, byte [ecx + edx]
mov edx, dword [0x103a5b68]
mov edi, dword [edx + ecx*8 - 8]
lea esi, [eax + edi - 1]
cmp eax, ebx
jne 0x10207eca
mov esi, edi
movzx eax, si
cmp byte [ebp + 0x10], bl
je 0x10207f81
push 0x2000
push ebx
push ebx
push ebx
push eax
call fcn.102cec11
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x1020819b
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call esi
mov dword [ebp + 0x18], eax
call fcn.10207d6e
push eax
push 0x20
push ebx
push edi
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
push dword [ebp + 0x18]
push edi
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp byte [ebp + 0x14], bl
je 0x10207f62
mov eax, dword [0x103a5b60]
mov ecx, dword [ebp - 4]
test byte [ecx + eax + 0x12], 0x20
je 0x10207f62
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0x14], ebx
call fcn.10210300
cmp dword [ebp + 0x14], ebx
je 0x10207f62
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
call fcn.10253c58
mov esi, eax
mov eax, dword [ebp + 0xc]
push 5
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x1020819d
push 2
push eax
call fcn.102cec11
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
jne 0x10207fb6
cmp esi, edi
je 0x1020819b
movzx eax, di
push 2
push eax
call fcn.102cec11
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x1020819b
push eax
call fcn.102cec11
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1020819b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea edi, [esi + 0x28]
cmp byte [ebp + 0x14], bl
je 0x1020817f
push 0x2c
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.102f835e
xor eax, eax
inc eax
mov word [ebp - 0x44], ax
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 8]
push 0x20
mov dword [ebp - 0x48], eax
pop eax
mov word [ebp - 0x42], ax
mov eax, dword [esi + 0x14]
push ebx
push ebx
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x14]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
mov dword [ebp - 0x50], 0x28
mov dword [ebp - 0x40], ebx
mov dword [ebp + 0x14], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x1020819b
cmp dword [ebp + 0x14], ebx
je 0x1020819b
mov eax, dword [ebp - 0x48]
cdq
xor eax, edx
sub eax, edx
imul eax, dword [ebp - 0x4c]
shl eax, 2
push eax
push edi
push dword [ebp + 0x14]
call fcn.102f7ffa
add esp, 0xc
cmp byte [ebp + 0xb], bl
je 0x10208141
cmp dword [0x103a5b70], ebx
mov dword [ebp - 8], ebx
jle 0x1020816f
mov eax, dword [0x103a5b60]
xor edi, edi
cmp dword [edi + eax + 4], ebx
je 0x1020812a
test byte [edi + eax + 0x12], 0x20
je 0x1020812a
mov dword [ebp - 0xc], ebx
cmp byte [edi + eax + 0xc], bl
jbe 0x1020812a
mov ecx, dword [ebp + 0x18]
imul ecx, ecx, 3
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 8]
mov edx, dword [edi + eax + 4]
mov ecx, dword [ebp - 4]
mov dl, byte [ebx + edx]
mov ecx, dword [ecx + eax + 4]
mov ebx, dword [ebp - 0x10]
cmp dl, byte [ebx + ecx]
jne 0x10208117
mov ecx, dword [edi + eax + 4]
mov edx, dword [ebp + 8]
mov ebx, dword [0x103a5b68]
movzx eax, word [edi + eax + 8]
push dword [ebp - 8]
add ecx, edx
movzx edx, byte [ecx]
movzx ecx, byte [ecx + 1]
mov edx, dword [ebx + edx*8 - 4]
lea ecx, [edx + ecx*4]
movzx edx, word [ecx]
movzx ebx, word [ecx + 2]
add eax, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
call fcn.102074d0
add eax, ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push esi
call fcn.102074f5
mov eax, dword [0x103a5b60]
movzx ecx, byte [edi + eax + 0xc]
inc dword [ebp - 0xc]
add dword [ebp + 8], 3
cmp dword [ebp - 0xc], ecx
jl 0x102080ab
xor ebx, ebx
inc dword [ebp - 8]
mov ecx, dword [0x103a5b70]
add edi, 0x14
cmp dword [ebp - 8], ecx
jl 0x1020807d
jmp 0x1020816f
mov eax, dword [0x103a5b60]
mov ecx, dword [ebp - 4]
test byte [ecx + eax + 0x12], 0x20
je 0x1020816f
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x20], ebx
push esi
mov dword [ebp - 0x1c], ebx
call fcn.102074f5
push 1
push dword [ebp + 0x14]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 0x10]
jmp 0x10208189
push 1
push edi
push dword [esi + 8]
push dword [esi + 4]
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.10253cf0
jmp 0x10207f70
mov eax, edi
jmp 0x1020819d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14