Function at 0x45ba60
Capabilities:
Get common file path
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff218
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov eax, 0x530bc0
call fcn.004d57f0
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], edx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], ecx
push esi
lea edi, [ebp - 0xd94]
mov esi, 0x530964
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xd94]
pop esi
mov dword [ebp - 0x54], eax
xor edx, edx
mov dword [ebp - 0x58], edx
push esi
lea edi, [ebp - 0xda4]
mov esi, 0x530b6c
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
lea edi, [ebp - 0xde8]
push esi
mov esi, 0x530b7c
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
mov dword [ebp - 0x60], eax
mov word [ebp - 0x14], 8
push 0xffffeeee
push 0xffffeeee
push 0x5ee2e6
push 0x5ee2e1
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045a3d0
add esp, 0x14
test ebx, ebx
je 0x45bb2b
push 0x5ee305
push ebx
call fcn.004d75f8
add esp, 8
mov dword [ebp - 0x58], 1
push 0x5ee30a
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x45bb53
push 0x5ee316
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x45bb7d
test ebx, ebx
je 0x45bb72
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee322
push ebx
call fcn.004d75f8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x45c17d
push 0x5ee32b
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x45bbb4
test ebx, ebx
je 0x45bba9
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee338
push ebx
call fcn.004d75f8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x45c17d
push 0x5ee346
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x45bbeb
test ebx, ebx
je 0x45bbe0
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee353
push ebx
call fcn.004d75f8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x45c17d
mov dword [ebp - 0x58], 3
push 0x5ee361
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
test edx, edx
jne 0x45bc4e
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee37d
push 0x5ee378
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045a3d0
add esp, 0x14
test ebx, ebx
je 0x45bc43
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee38a
push ebx
call fcn.004d75f8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x45c17d
push 0x5ee399
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
test edx, edx
jne 0x45bcaa
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee3b6
push 0x5ee3b1
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045a3d0
add esp, 0x14
test ebx, ebx
je 0x45bc9f
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee3c3
push ebx
call fcn.004d75f8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x45c17d
mov dword [ebp - 0x58], 4
push 0x5ee3d2
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x45bcec
test ebx, ebx
je 0x45bce1
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee3ea
push ebx
call fcn.004d75f8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x45c17d
mov dword [ebp - 0x58], 5
push 0x5ee3f8
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x45bd28
test ebx, ebx
je 0x45bd1d
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee408
push ebx
call fcn.004d75f8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x45c17d
mov dword [ebp - 0x58], 6
lea eax, [ebp - 0x880]
push eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.00403494
add esp, 8
lea ecx, [ebp - 0x268]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00403494
add esp, 8
lea edx, [ebp - 0x678]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403494
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x45bd8d
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00403494
add esp, 8
mov dword [ebp - 0x58], 7
mov byte [ebp - 0xb8c], 0
test esi, esi
jne 0x45bda5
lea esi, [ebp - 0xb8c]
mov al, byte [esi]
test al, al
jne 0x45bdb1
lea esi, [ebp - 0xb8c]
mov al, byte [esi]
test al, al
jne 0x45bdc2
push esi
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea edi, [ebp - 0xa88]
push edi
push esi
call fcn.00403494
add esp, 8
mov dword [ebp - 0x58], 8
push 0xffffeeee
push 0xffffeeee
push 0x5ee41b
push 0x5ee416
mov eax, dword [ebp + 0x20]
push eax
call fcn.0045a3d0
add esp, 0x14
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x45be07
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
test al, al
push 0xffffeeee
push 0xffffeeee
push 0x5ee423
push 0x5ee41e
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045a3d0
add esp, 0x14
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x45be64
push 0xffffeeee
push 0xffffeeee
push 0x5ee42b
push 0x5ee426
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045a3d0
add esp, 0x14
call fcn.0045aa10
push eax
call fcn.0045aa4c
pop ecx
mov dword [ebp - 0x40], eax
jmp 0x45bedf
push 0xffffeeee
push 0xffffeeee
push 0x5ee439
push 0x5ee434
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045a3d0
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
push 0
push 2
mov edx, dword [ebp + 0x10]
push edx
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.dll_LogonUserA
test eax, eax
jne 0x45bedf
mov dword [ebp - 0x58], 9
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee447
push 0x5ee442
mov eax, dword [ebp + 0x20]
push eax
call fcn.0045a3d0
add esp, 0x14
test ebx, ebx
je 0x45bedf
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee454
push ebx
call fcn.004d75f8
add esp, 0xc
push 0xffffeeee
push 0xffffeeee
push 0x5ee467
push 0x5ee462
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045a3d0
add esp, 0x14
lea eax, [ebp - 0x4c]
push 0
mov ecx, dword [ebp - 0x40]
push ecx
push eax
call dword [ebp - 0x5c]
test eax, eax
jne 0x45bf55
mov dword [ebp - 0x58], 9
xor edx, edx
mov dword [ebp - 0x4c], edx
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee473
push 0x5ee46e
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045a3d0
add esp, 0x14
test ebx, ebx
je 0x45bf55
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee47e
push ebx
call fcn.004d75f8
add esp, 0xc
mov dword [ebp - 0x50], 0x82
push 0xffffeeee
push 0xffffeeee
push 0x5ee491
push 0x5ee48c
mov eax, dword [ebp + 0x20]
push eax
call fcn.0045a3d0
add esp, 0x14
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x54]
push ecx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00447f58
add esp, 0xc
test eax, eax
jne 0x45bfd9
mov dword [ebp - 0x58], 9
xor edx, edx
mov dword [ebp - 0x54], edx
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee49d
push 0x5ee498
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045a3d0
add esp, 0x14
test ebx, ebx
je 0x45bfd9
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee4a8
push ebx
call fcn.004d75f8
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0xda4]
push eax
call fcn.004d2d9c
add esp, 0xc
lea edx, [ebp - 0xde8]
push 0x44
push 0
push edx
call fcn.004d2d9c
mov dword [ebp - 0xde8], 0x44
mov dword [ebp - 0x58], 8
mov ecx, dword [ebp - 0x40]
add esp, 0xc
test ecx, ecx
je 0x45c035
test byte [ebp + 0x20], 4
jne 0x45c035
call fcn.0045aa10
push eax
call fcn.0045aa4c
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
test edi, edi
jne 0x45c043
mov edx, dword [ebp - 0x54]
test edx, edx
je 0x45c043
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0xda4]
lea edx, [ebp - 0xde8]
push eax
push edx
push edi
lea eax, [ebp - 0x880]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x678]
push ecx
push 0x400
push eax
push 0
push 1
push edx
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x268]
push ecx
push eax
call dword [ebp - 0x34]
test eax, eax
jne 0x45c123
mov dword [ebp - 0x58], 9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2e4
jne 0x45c0e2
push 0
lea edx, [ebp - 0xb8c]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0043f93c
add esp, 0xc
test eax, eax
je 0x45c0e2
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee4bb
push 0x5ee4b6
mov eax, dword [ebp + 0x20]
push eax
call fcn.0045a3d0
mov dword [ebp - 0x38], 1
mov word [ebp - 0x14], 0
add esp, 0x14
jmp 0x45c17d
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee4ce
push 0x5ee4c9
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045a3d0
add esp, 0x14
test ebx, ebx
je 0x45c11b
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee4de
push ebx
call fcn.004d75f8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x45c17d
mov dword [ebp - 0x58], 0xa
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ee4f1
push 0x5ee4ec
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045a3d0
mov dword [ebp - 0x38], 1
mov word [ebp - 0x14], 0
add esp, 0x14
jmp 0x45c17d
mov word [ebp - 0x14], 0x14
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x45c195
test byte [ebp + 0x20], 4
jne 0x45c195
call sub.ADVAPI32.dll_RevertToSelf
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x45c1aa
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x45c1aa
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [ebp - 0x60]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x45c1ba
mov edx, dword [ebp - 0x40]
push edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x45c1ca
mov eax, dword [ebp - 0x44]
push eax
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x45c1da
mov ecx, dword [ebp - 0x48]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x45c1ea
mov edx, dword [ebp - 0x28]
push edx
call sub.KERNEL32.dll_FreeLibrary
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x45c1fa
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_FreeLibrary
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x45c20a
mov ecx, dword [ebp - 0x30]
push ecx
call sub.KERNEL32.dll_FreeLibrary
mov word [ebp - 0x14], 0
jmp 0x45c235
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0xdf4]
mov esi, dword [ebp - 0xdf0]
mov ebx, dword [ebp - 0xdec]
pop ebp
ret