Function at 0x481450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
push ebx
push esi
push edi
xor eax, eax
mov byte [esp + 0x48], 0
push 0x2c
push eax
mov dword [esp + 0x60], eax
xor ebx, ebx
lea eax, [esp + 0x8c]
mov dword [esp + 0x58], 0
push eax
xor edi, edi
call fcn.004dce30
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x2c]
push eax
push 0x500450
push 1
push edi
push 0x500470
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4816fd
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x6c]
push eax
push 3
lea eax, [esp + 0x80]
mov dword [esp + 0x80], 0x5307cc
push eax
push esi
mov dword [esp + 0x90], ebx
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x4816fd
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x74]
push esi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x4816fd
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
push edi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov ebx, eax
push esi
push ebx
call fcn.004dd620
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
add esp, 0xc
mov edx, dword [ecx]
push eax
push ecx
mov esi, dword [edx + 0x38]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fb
mov eax, dword [esp + 0x44]
push edi
push ebx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x40]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fb
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0x500480
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x1c]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fb
mov eax, dword [esp + 0x38]
push 1
push dword [esp + 0x48]
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fb
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fb
cmp dword [esp + 0x50], 1
jb 0x4816fb
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x34]
push ecx
push 0
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fb
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xb0]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fb
cmp byte [ebp + 0x18], 0
lea ecx, [esp + 0xb0]
mov edi, 0x500440
mov eax, 0x500430
cmove edi, eax
mov esi, 0xc
mov edx, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x481693
add ecx, 4
add edx, 4
sub esi, 4
jae 0x481675
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], eax
jmp 0x4817fd
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fb
mov eax, dword [esp + 0x30]
push 0
sub esp, 8
fldz
mov esi, dword [eax]
fstp qword [esp]
push 0
mov esi, dword [esi + 0x20]
mov ecx, esi
push 0
push edi
push dword [esp + 0x4c]
push eax
call dword [0x4fe8dc]
call esi
test eax, eax
mov eax, dword [esp + 0x30]
jns 0x4817bc
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
xor edi, edi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x481715
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov eax, dword [esp + 0x58]
test eax, eax
je 0x481724
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x481731
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x481749
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x481761
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x481779
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x481791
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test ebx, ebx
je 0x4817a4
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp byte [esp + 0x48], 0
je 0x481902
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push 0x500460
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x68]
neg eax
mov dword [esp + 0x84], 0x28
push 0
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0x200001
mov dword [esp + 0x98], 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
push 0
lea eax, [esp + 0x94]
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x2c]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fd
mov eax, dword [esp + 0x3c]
push 3
push dword [esp + 0x6c]
push dword [esp + 0x6c]
mov esi, dword [eax]
push dword [esp + 0x4c]
push eax
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x4816fd
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
push dword [esp + 0x54]
mov edx, dword [esp + 0x40]
imul eax, ecx
mov esi, dword [edx]
shl eax, 2
push eax
mov esi, dword [esi + 0x1c]
lea eax, [ecx*4]
push eax
lea eax, [esp + 0x68]
mov ecx, esi
push eax
push edx
call dword [0x4fe8dc]
call esi
mov ecx, dword [esp + 0x48]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovns ecx, eax
mov dword [esp + 0x48], ecx
jmp 0x4816fd
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14