Function at 0x610260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
push esi
push edi
lea edi, [ebp - 0x33c]
mov ecx, 0xcf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x818f7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x54], 0
push 0x31
push 0
lea eax, [ebp - 0x53]
push eax
call fcn.00533469
add esp, 0xc
mov byte [ebp - 0x15c], 0
push 0xff
push 0
lea eax, [ebp - 0x15b]
push eax
call fcn.00533469
add esp, 0xc
mov byte [ebp - 0x268], 0
push 0x103
push 0
lea eax, [ebp - 0x267]
push eax
call fcn.00533469
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00532325
add esp, 4
test eax, eax
je 0x6102fb
xor eax, eax
jmp 0x610525
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x268]
push ecx
call fcn.00535f3e
add esp, 8
mov esi, esp
push 0
push SQLGetDiagRec
push 1
push 0
push 7
push 6
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6103b5
mov dword [ebp - 0x274], 0
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0x274], eax
mov esi, esp
push 0
push SQLGetDiagRec
push 4
push 0
push 7
push 6
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6103b5
call fcn.00533cd9
sub eax, dword [0x93642c]
cmp eax, 0xea60
ja 0x6103a4
call fcn.0053453f
test eax, eax
jne 0x6103ae
call fcn.00533cd9
mov dword [0x93642c], eax
xor eax, eax
jmp 0x610525
push 0x32
lea eax, [ebp - 0x54]
push eax
call fcn.0053401c
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x6103dc
push 0x32
push 0x79e14c
lea eax, [ebp - 0x54]
push eax
call fcn.005348b9
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push str._nLock_was_initiated_by:__s
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00533cfc
add esp, 0xc
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00533603
add esp, 4
push eax
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00535fca
test eax, eax
jne 0x610457
mov eax, dword [0x936384]
mov ecx, dword [0x936384]
add ecx, 1
mov dword [0x936384], ecx
cmp eax, 0xa
jae 0x61044d
mov dword [ebp - 0x33c], 1
jmp 0x610457
mov dword [ebp - 0x33c], 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00532325
add esp, 4
test eax, eax
jne 0x6104af
mov eax, dword [ebp + 0x10]
push eax
push str._nIn_Source_File:__s
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00533cfc
add esp, 0xc
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00533603
add esp, 4
push eax
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00535fca
cmp dword [ebp + 0x14], 0
jle 0x6104fd
mov eax, dword [ebp + 0x14]
push eax
push str._nFrom_Source_Line:__d
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00533cfc
add esp, 0xc
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00533603
add esp, 4
push eax
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00535fca
mov eax, dword [0x8187e0]
add eax, 0x5a
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__network.c
push str.SetServerLockedFlagFile
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00533ee6
mov dword [ebp - 0xc], 0
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x610554]
call fcn.0053491d
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00535561
add esp, 0x33c
cmp ebp, esp
call fcn.00535fca
mov esp, ebp
pop ebp
ret