Function at 0x519138
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
xor ecx, ecx
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x519476
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x54119c]
cmp dword [eax], 2
jne 0x519248
lea eax, [ebp - 0x18]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x519248
xor eax, eax
push ebp
push 0x519241
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
push 0x519484
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
test eax, eax
jne 0x5191bd
call fcn.00405ed4
jmp 0x519445
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 2
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
jne 0x5191fa
call fcn.00405ed4
jmp 0x519445
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x51922a
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x18c]
call fcn.00417bc0
mov ecx, dword [ebp - 0x18c]
mov dl, 1
mov eax, dword [0x40e688]
call fcn.00418554
call fcn.00405de0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519248
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x520]
mov edx, dword [eax]
call dword [edx + 0xec]
inc eax
je 0x51927e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x520]
mov edx, dword [eax]
call dword [edx + 0xec]
mov edx, eax
lea ecx, [ebp - 4]
mov eax, dword [0x54780c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x51928f
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x520]
call fcn.004a0b04
lea eax, [ebp - 8]
push eax
mov ecx, 1
mov edx, 0x5194b8
mov eax, dword [ebp - 4]
call fcn.00531d18
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x600]
mov edx, dword [eax]
call dword [edx + 0xec]
test eax, eax
jle 0x5192dc
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x600]
call fcn.004a0b04
mov eax, dword [ebp - 0x190]
call fcn.00413f14
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xdc]
push eax
call sub.kernel32.dll_GetTimeZoneInformation
lea eax, [ebp - 0x188]
push eax
call sub.kernel32.dll_GetTimeZoneInformation
mov eax, dword [0x540ad8]
mov eax, dword [eax]
call fcn.004a9a4c
call fcn.004c42d8
mov dword [0x5477e0], eax
xor edx, edx
push ebp
push 0x51943e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x540ad8]
mov eax, dword [eax]
call fcn.004cbc88
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x5194c8
mov edx, 0x5194ec
mov eax, 0x519538
call fcn.0052fff8
mov edx, 0x5194b8
mov eax, dword [ebp - 4]
call fcn.00531c48
cmp eax, 2
jl 0x51937c
lea eax, [ebp - 0xc]
push eax
mov ecx, 2
mov edx, 0x5194b8
mov eax, dword [ebp - 4]
call fcn.00531d18
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 0x519710
mov edx, 0x519734
mov eax, 0x519778
call fcn.0052fff8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x600]
mov edx, dword [eax]
call dword [edx + 0xec]
test eax, eax
jle 0x5193af
imul eax, dword [ebp - 0x14], 0xffffffc4
cmp eax, dword [ebp - 0x188]
je 0x5193af
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xdc]
push eax
call sub.kernel32.dll_SetTimeZoneInformation
xor eax, eax
push ebp
push 0x51940b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
xor ecx, ecx
mov edx, 0x519950
mov eax, 0x519778
call fcn.0052fff8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519412
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x600]
mov edx, dword [eax]
call dword [edx + 0xec]
test eax, eax
jle 0x51940a
imul eax, dword [ebp - 0x14], 0xffffffc4
cmp eax, dword [ebp - 0x188]
je 0x51940a
lea eax, [ebp - 0x188]
push eax
call sub.kernel32.dll_SetTimeZoneInformation
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51947d
lea eax, [ebp - 0x190]
call fcn.00407584
lea eax, [ebp - 0x18c]
call fcn.00407584
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040758c
ret