Function at 0x463610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push edi
mov edi, dword [ebp + 0x10]
push 0x32
push 0
push eax
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], 0
call fcn.004e69c0
push 0x100
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004e69c0
push esi
call fcn.004a73a0
add esp, 0x28
test eax, eax
jne 0x463725
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.00461800
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x23c]
add esp, 8
push 0
push SQLGetDiagRec
push 1
push 0
push 7
push 6
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x46373e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push SQLGetDiagRec
push 4
push 0
push 7
mov edi, eax
lea eax, [ebp - 0x23c]
push 6
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x463738
call fcn.004d9850
sub eax, dword [0x66b3b4]
cmp eax, 0xea60
ja 0x4636fb
call fcn.0040e900
test eax, eax
jne 0x463725
call fcn.004d9850
push str._GetLastError_
push edi
push str._GetLastError_
mov dword [0x66b3b4], eax
lea eax, [ebp - 0x23c]
push edi
push eax
push str.:3:SetServerLockedFlagFile___FAILED:_10min:_CreateFile___s___FAILED:_GetLastError___should_be___ld:__s_ld:_Second_Error:__s
call fcn.00424fd0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x244]
lea eax, [ebp - 0x38]
push 0x32
push eax
call fcn.0045df50
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x463765
push 0x32
lea eax, [ebp - 0x38]
push 0x50b6dc
push eax
call fcn.004a98f0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x138]
push str._nLock_was_initiated_by:__s
push eax
call fcn.00404200
lea ecx, [ebp - 0x138]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463786
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x240]
push 0
push eax
sub ecx, edx
lea eax, [ebp - 0x138]
push ecx
push eax
push esi
call ebx
test eax, eax
jne 0x4637d1
mov eax, dword [0x66b3b0]
mov ecx, eax
inc eax
mov dword [0x66b3b0], eax
cmp ecx, 0xa
jae 0x4637d1
push str._GetLastError_
push str.:7:SetServerLockedFlagFile___FAILED:_WriteFile___FAILED:__s
call fcn.00424a90
add esp, 8
push edi
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x46381d
push edi
lea eax, [ebp - 0x138]
push str._nIn_Source_File:__s
push eax
call fcn.00404200
lea ecx, [ebp - 0x138]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463800
push 0
lea eax, [ebp - 0x240]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x138]
push eax
push esi
call ebx
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x46385f
push eax
lea eax, [ebp - 0x138]
push str._nFrom_Source_Line:__d
push eax
call fcn.00404200
lea ecx, [ebp - 0x138]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463842
push 0
lea eax, [ebp - 0x240]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x138]
push eax
push esi
call ebx
push 0x2751
push str.C:UsersOfficeDocumentsVisual_StudioPAULANetwork.c
push str.SetServerLockedFlagFile
push esi
call fcn.00426230
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret