Function at 0x405d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5468f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5aa060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
mov edi, dword [esi + 0x80]
mov ebx, dword [esi + 0x7c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ebx
call fcn.00408e83
cmp dword [esi + 0x78], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
je 0x405da4
call fcn.00408e83
push 5
push dword [esi + 0x78]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x405db4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp - 0x20], eax
test edi, edi
jne 0x405dcd
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0041859f
mov edi, eax
mov dword [ebp - 0x30], edi
call fcn.0040a35d
xor ebx, ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
test edi, edi
je 0x405e5e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x405e5e
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405e5e
push ebx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040feb7
test eax, eax
je 0x405e59
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x405e5e
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14c]
test eax, eax
je 0x405e5e
mov ecx, ebx
call fcn.00417697
test eax, eax
je 0x405e5e
push 0
mov ecx, ebx
call fcn.0041705d
mov dword [ebp - 0x28], 1
jmp 0x405e5e
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.0040787f
mov dword [ebp - 4], 0
push esi
mov byte [ebp - 4], 1
call fcn.00409ff5
push edi
call fcn.0040b459
push dword [ebp - 0x1c]
mov ecx, esi
push eax
push dword [ebp - 0x20]
call fcn.00417d82
test eax, eax
je 0x405efc
test byte [esi + 0x58], 0x10
je 0x405eb6
mov ecx, esi
call fcn.0041755b
test eax, 0x100
mov ecx, 5
mov eax, 4
cmovne eax, ecx
mov ecx, esi
push eax
call fcn.00407510
cmp dword [esi + 0x20], 0
je 0x405efc
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.00417a00
jmp 0x405efc
mov dword [ebp - 4], 0xffffffff
call fcn.0040794e
cmp dword [ebp - 0x28], 0
je 0x405f17
push 1
mov ecx, ebx
call fcn.0041705d
cmp dword [ebp - 0x2c], 0
je 0x405f26
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x405f3c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x405f3c
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00418556
cmp dword [esi + 0x78], 0
je 0x405f59
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret