Function at 0x458cfc
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, 0x51c3b8
call fcn.004d08c0
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, 0x51c15c
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, 0x51c364
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
lea edi, [ebp - 0xde8]
push esi
mov esi, 0x51c374
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 0x5d4bf2
push 0x5d4bed
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045766c
add esp, 0x14
test ebx, ebx
je 0x458dc7
push 0x5d4c11
push ebx
call fcn.004d26c8
add esp, 8
mov dword [ebp - 0x58], 1
push 0x5d4c16
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x458def
push 0x5d4c22
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x458e19
test ebx, ebx
je 0x458e0e
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4c2e
push ebx
call fcn.004d26c8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x459419
push 0x5d4c37
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x458e50
test ebx, ebx
je 0x458e45
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4c44
push ebx
call fcn.004d26c8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x459419
push 0x5d4c52
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x458e87
test ebx, ebx
je 0x458e7c
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4c5f
push ebx
call fcn.004d26c8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x459419
mov dword [ebp - 0x58], 3
push 0x5d4c6d
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 0x458eea
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4c89
push 0x5d4c84
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045766c
add esp, 0x14
test ebx, ebx
je 0x458edf
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4c96
push ebx
call fcn.004d26c8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x459419
push 0x5d4ca5
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 0x458f46
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4cc2
push 0x5d4cbd
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045766c
add esp, 0x14
test ebx, ebx
je 0x458f3b
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4ccf
push ebx
call fcn.004d26c8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x459419
mov dword [ebp - 0x58], 4
push 0x5d4cde
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 0x458f88
test ebx, ebx
je 0x458f7d
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4cf6
push ebx
call fcn.004d26c8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x459419
mov dword [ebp - 0x58], 5
push 0x5d4d04
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x458fc4
test ebx, ebx
je 0x458fb9
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4d14
push ebx
call fcn.004d26c8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x459419
mov dword [ebp - 0x58], 6
lea eax, [ebp - 0x880]
push eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040348c
add esp, 8
lea ecx, [ebp - 0x268]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040348c
add esp, 8
lea edx, [ebp - 0x678]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040348c
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x459029
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.0040348c
add esp, 8
mov dword [ebp - 0x58], 7
mov byte [ebp - 0xb8c], 0
test esi, esi
jne 0x459041
lea esi, [ebp - 0xb8c]
mov al, byte [esi]
test al, al
jne 0x45904d
lea esi, [ebp - 0xb8c]
mov al, byte [esi]
test al, al
jne 0x45905e
push esi
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea edi, [ebp - 0xa88]
push edi
push esi
call fcn.0040348c
add esp, 8
mov dword [ebp - 0x58], 8
push 0xffffeeee
push 0xffffeeee
push 0x5d4d27
push 0x5d4d22
mov eax, dword [ebp + 0x20]
push eax
call fcn.0045766c
add esp, 0x14
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4590a3
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
test al, al
push 0xffffeeee
push 0xffffeeee
push 0x5d4d2f
push 0x5d4d2a
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045766c
add esp, 0x14
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x459100
push 0xffffeeee
push 0xffffeeee
push 0x5d4d37
push 0x5d4d32
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045766c
add esp, 0x14
call fcn.00457cac
push eax
call fcn.00457ce8
pop ecx
mov dword [ebp - 0x40], eax
jmp 0x45917b
push 0xffffeeee
push 0xffffeeee
push 0x5d4d45
push 0x5d4d40
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045766c
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 0x45917b
mov dword [ebp - 0x58], 9
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4d53
push 0x5d4d4e
mov eax, dword [ebp + 0x20]
push eax
call fcn.0045766c
add esp, 0x14
test ebx, ebx
je 0x45917b
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4d60
push ebx
call fcn.004d26c8
add esp, 0xc
push 0xffffeeee
push 0xffffeeee
push 0x5d4d73
push 0x5d4d6e
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045766c
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 0x4591f1
mov dword [ebp - 0x58], 9
xor edx, edx
mov dword [ebp - 0x4c], edx
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4d7f
push 0x5d4d7a
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045766c
add esp, 0x14
test ebx, ebx
je 0x4591f1
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4d8a
push ebx
call fcn.004d26c8
add esp, 0xc
mov dword [ebp - 0x50], 0x82
push 0xffffeeee
push 0xffffeeee
push 0x5d4d9d
push 0x5d4d98
mov eax, dword [ebp + 0x20]
push eax
call fcn.0045766c
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.00445e44
add esp, 0xc
test eax, eax
jne 0x459275
mov dword [ebp - 0x58], 9
xor edx, edx
mov dword [ebp - 0x54], edx
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4da9
push 0x5d4da4
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045766c
add esp, 0x14
test ebx, ebx
je 0x459275
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4db4
push ebx
call fcn.004d26c8
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0xda4]
push eax
call fcn.004cde6c
add esp, 0xc
lea edx, [ebp - 0xde8]
push 0x44
push 0
push edx
call fcn.004cde6c
mov dword [ebp - 0xde8], 0x44
mov dword [ebp - 0x58], 8
mov ecx, dword [ebp - 0x40]
add esp, 0xc
test ecx, ecx
je 0x4592d1
test byte [ebp + 0x20], 4
jne 0x4592d1
call fcn.00457cac
push eax
call fcn.00457ce8
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
test edi, edi
jne 0x4592df
mov edx, dword [ebp - 0x54]
test edx, edx
je 0x4592df
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 0x4593bf
mov dword [ebp - 0x58], 9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2e4
jne 0x45937e
push 0
lea edx, [ebp - 0xb8c]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0043da0c
add esp, 0xc
test eax, eax
je 0x45937e
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4dc7
push 0x5d4dc2
mov eax, dword [ebp + 0x20]
push eax
call fcn.0045766c
mov dword [ebp - 0x38], 1
mov word [ebp - 0x14], 0
add esp, 0x14
jmp 0x459419
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4dda
push 0x5d4dd5
mov edx, dword [ebp + 0x20]
push edx
call fcn.0045766c
add esp, 0x14
test ebx, ebx
je 0x4593b7
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4dea
push ebx
call fcn.004d26c8
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x459419
mov dword [ebp - 0x58], 0xa
push 0xffffeeee
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5d4dfd
push 0x5d4df8
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0045766c
mov dword [ebp - 0x38], 1
mov word [ebp - 0x14], 0
add esp, 0x14
jmp 0x459419
mov word [ebp - 0x14], 0x14
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x459431
test byte [ebp + 0x20], 4
jne 0x459431
call sub.ADVAPI32.dll_RevertToSelf
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x459446
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x459446
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [ebp - 0x60]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x459456
mov edx, dword [ebp - 0x40]
push edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x459466
mov eax, dword [ebp - 0x44]
push eax
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x459476
mov ecx, dword [ebp - 0x48]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x459486
mov edx, dword [ebp - 0x28]
push edx
call sub.KERNEL32.dll_FreeLibrary
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x459496
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_FreeLibrary
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4594a6
mov ecx, dword [ebp - 0x30]
push ecx
call sub.KERNEL32.dll_FreeLibrary
mov word [ebp - 0x14], 0
jmp 0x4594d1
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