Function at 0x456240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d15cd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov ecx, 4
lea eax, [edi - 0x20]
test edi, edi
push 0xe801
cmove eax, ecx
mov dword [ebp - 0x3c], eax
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4562a0
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi]
test eax, eax
je 0x4562b5
push eax
call fcn.004b4707
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
xorps xmm0, xmm0
mov dword [edi + 8], 0
movlpd qword [ebp - 0x44], xmm0
mov dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x1c], 0
mov dword [ebp - 0x44], 0
push 0x4e5014
push 0x9f
push dword [0x52f1b0]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x45649f
push esi
push dword [0x52f1b0]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x456498
push esi
push dword [0x52f1b0]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
shr eax, 1
mov dword [ebp - 0x50], eax
cmp eax, 1
jbe 0x45649f
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push dword [ebp - 0x44]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
cmp word [edi], 0
jne 0x456485
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x48], eax
add edi, 6
test esi, esi
je 0x456485
mov ah, byte [edi - 4]
test ah, ah
js 0x4563b4
cmp ah, 0x64
jle 0x4563b7
or ah, 0xff
mov dl, byte [edi - 2]
test dl, dl
js 0x4563c3
cmp dl, 0x64
jle 0x4563c6
or dl, 0xff
mov cl, byte [edi]
test cl, cl
js 0x4563d1
cmp cl, 0x64
jle 0x4563d4
or cl, 0xff
mov al, byte [edi + 2]
test al, al
js 0x4563df
cmp al, 0x64
jle 0x4563e1
or al, 0xff
cmp ah, 0xff
je 0x4563f8
cmp dl, 0xff
je 0x4563f8
cmp cl, 0xff
je 0x4563f8
cmp al, 0xff
je 0x4563f8
mov dh, 1
jmp 0x4563fa
xor dh, dh
test ah, ah
jne 0x45640e
test dl, dl
jne 0x45640e
test cl, cl
jne 0x45640e
test al, al
jne 0x45640e
xor ch, ch
jmp 0x456410
mov ch, 1
test dh, dh
je 0x456467
test ch, ch
je 0x456467
mov byte [ebp - 0x34], ah
xorps xmm0, xmm0
mov byte [ebp - 0x31], al
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x33], dl
mov byte [ebp - 0x32], cl
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x45645b
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x38]
push eax
call fcn.00418490
add dword [ebp - 0x48], 4
add edi, 8
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x50]
jl 0x4563a0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
cmp byte [ebp + 8], 0
mov esi, dword [ebp - 0x3c]
je 0x456567
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xe801
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4564d7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
sub edx, esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
push 0
push dword [0x52f1ac]
push 0xe801
push dword [edi]
push edx
push eax
push esi
push ecx
push 0x5400001c
push 0
push 0x4e4800
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [ebp - 0x4c]
test eax, eax
je 0x456564
lea ecx, [ebp - 0x30]
mov byte [edi + 0x1c], 1
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
push eax
mov dword [ebp - 0x34], 0x6464
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x456557
lea eax, [ebp - 0x28]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.00418490
jmp 0x456567
mov esi, dword [ebp - 0x3c]
cmp byte [ebp + 0xc], 0
je 0x4565ac
push 0xfffffffffffffff0
push dword [esi]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea ecx, [ebp - 0x20]
test eax, 0x40000000
mov eax, dword [esi]
push ecx
push eax
je 0x456594
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x45659a
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4565ba
push eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 8