Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov eax, dword [str.Advapi32.dll]
mov dword [ebp - 0x64], eax
mov ecx, dword [0x45bc58]
mov dword [ebp - 0x60], ecx
mov edx, dword [0x45bc5c]
mov dword [ebp - 0x5c], edx
mov al, byte [0x45bc60]
mov byte [ebp - 0x58], al
mov ecx, dword [str.VirtualAllocEx]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x45bc68]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x45bc6c]
mov dword [ebp - 0x28], eax
mov cx, word [0x45bc70]
mov word [ebp - 0x24], cx
mov dl, byte [0x45bc72]
mov byte [ebp - 0x22], dl
mov dword [ebp - 0x1c], 0x40
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xc]
push edx
push 4
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x40113c
push 0
push 0
push 0
push 0
push 0x320
push 0x258
push 0
push 0
push 0x50000000
push 0
push 0
push 0xa
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
push 3
push 0
push 2
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_AddAce]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
movzx edx, word [ebp - 0x20]
cmp edx, 0x7a
jne 0x40117c
mov dword [ebp - 0x14], 0xe0d
mov dword [ebp - 0x40], 0x3a
mov byte [ebp - 0x24], 0
mov dword [ebp - 8], 0xbc67b5a2
mov eax, dword [ebp - 0x50]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x70], 0xddeb7
jmp 0x40119f
mov byte [0x403090], 0
push 0x407d30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x20], eax
push 0x403090
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x20], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x20], eax
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edx
mov dword [ebp - 0x6c], edx
push 0
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x1c]
push 0x1000
mov eax, dword [ebp - 0x14]
add eax, 0x46
push eax
push 0
mov ebx, dword [ebp - 0x34]
call ebx
push eax
pop ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x70]
sub ecx, 0xdae0b
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 4], 0
jne 0x401228
push 0
push 0
push 0
push 0
call sub.AVIFIL32.dll_AVIStreamCreate
mov edx, dword [ebp - 0x68]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], edx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 0xa
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [ebp - 0x70], 0
jbe 0x401286
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402899
add esp, 0x10
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
cmp dword [ebp - 0x4c], 0
je 0x4012a3
push dword [ebp - 0x3c]
push dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x4c]
call ecx
jmp 0x4012b4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
push 0x38270
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret