Function at 0x41a580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557051
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2cc], ecx
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2dc], edx
xor ebx, ebx
call fcn.004489d0
mov dword [ebp - 4], ebx
call fcn.0044bf0f
movzx ecx, word [ebp + 0xc]
mov eax, dword [eax + 0xc]
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x41a697
call fcn.0044bf0f
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x41a697
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp dword [edi + 0x20], ebx
je 0x41a628
movzx ebx, word [edi + 0x20]
jmp case.0x41a639.2
movzx eax, word [edi + 0xe]
dec eax
cmp eax, 0x17
ja case.0x41a639.2
movzx edx, byte [eax + 0x41a90c]
jmp dword [edx*4 + 0x41a8f8]
mov ebx, 2
jmp case.0x41a639.2
mov ebx, 0x10
jmp case.0x41a639.2
mov ebx, 0x100
jmp case.0x41a639.2
xor ebx, ebx
movzx eax, bx
mov dword [ebp - 0x2d4], eax
lea eax, [eax*4 + 8]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2d0], eax
test eax, eax
je 0x41a697
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x41a6c7
mov ecx, dword [ebp - 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 4], 0xffffffff
call fcn.004488b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret
mov edx, 0x300
mov word [esi], dx
mov edx, dword [ebp - 0x2d4]
mov word [esi + 2], bx
test edx, edx
jle 0x41a703
lea eax, [esi + 5]
lea ecx, [edi + 0x29]
movzx ebx, byte [ecx + 1]
mov byte [eax - 1], bl
movzx ebx, byte [ecx]
mov byte [eax], bl
movzx ebx, byte [ecx - 1]
mov byte [eax + 1], bl
mov byte [eax + 2], 0
add ecx, 4
add eax, 4
dec edx
jne 0x41a6e3
push 8
mov byte [ebp - 4], 1
call fcn.00449b42
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x41a722
mov dword [eax + 4], ebx
mov dword [eax], vtable.CPalette.0
mov ebx, eax
mov eax, dword [ebp - 0x2cc]
push esi
mov dword [eax], ebx
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
mov ecx, ebx
call fcn.00458344
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ecx]
mov ebx, dword [ebp - 0x2d8]
push 1
push eax
mov ecx, ebx
call fcn.0045847c
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [edi]
mov edx, dword [ebp - 0x2d4]
mov eax, dword [ebx + 4]
lea esi, [ecx + edx*4]
add esi, edi
cmp dword [ebp - 0x298], 0
je 0x41a7aa
push 4
push eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [ebx + 4]
push 0
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
jmp 0x41a7b3
push 3
push eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
cmp dword [ebp - 0x2dc], 0
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov eax, edx
je 0x41a7d8
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
sub eax, dword [edx]
sub ecx, dword [edx + 4]
mov edx, dword [edi + 4]
push 0xcc0020
mov ebx, dword [ebx + 4]
push 0
push edi
push esi
mov esi, dword [edi + 8]
push esi
push edx
push 0
push 0
push ecx
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
jmp 0x41a697