Function at 0x4709a5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
mov eax, dword [ebp + 0x1d8]
push ebx
push esi
xor ebx, ebx
push 0x31
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x195]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x74], ebx
mov byte [ebp + 0x194], bl
call fcn.00508d00
push 0xff
lea eax, [ebp + 0x95]
push ebx
push eax
mov byte [ebp + 0x94], bl
call fcn.00508d00
push 0x103
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.00508d00
push esi
call fcn.004010dc
add esp, 0x28
test eax, eax
je 0x470a25
xor eax, eax
jmp 0x470beb
push edi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00402f81
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
pop ecx
pop ecx
push ebx
mov edi, SQLGetDiagRec
push edi
push 1
push ebx
push 7
push 6
lea eax, [ebp - 0x70]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
jne 0x470abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
push 4
push ebx
push 7
mov dword [ebp - 0x7c], eax
push 6
lea eax, [ebp - 0x70]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
jne 0x470abe
call fcn.00401e97
sub eax, dword [0x7444d4]
cmp eax, 0xea60
ja 0x470a8f
call fcn.0040215d
test eax, eax
jne 0x470ab7
call fcn.00401e97
mov dword [0x7444d4], eax
mov eax, str._GetLastError_
push eax
push dword [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
push str.:3:SetServerLockedFlagFile___FAILED:_10min:_CreateFile___s___FAILED:_GetLastError___should_be___ld:__s_ld:_Second_Error:__s
call fcn.00401375
add esp, 0x18
xor eax, eax
jmp 0x470bea
lea eax, [ebp + 0x194]
push 0x32
push eax
call fcn.00401fe1
cmp dword [ebp + 0x1d4], ebx
pop ecx
pop ecx
je 0x470aec
push 0x32
lea eax, [ebp + 0x194]
push 0x583e6c
push eax
call fcn.00402365
add esp, 0xc
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp + 0x94]
push str._nLock_was_initiated_by:__s
push eax
call fcn.0050dd60
add esp, 0xc
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x94]
push eax
call fcn.00508320
mov edi, dword [ebp - 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp + 0x94]
push eax
push edi
call esi
test eax, eax
jne 0x470b52
mov eax, dword [0x7443cc]
inc dword [0x7443cc]
cmp eax, 0xa
jae 0x470b52
push str._GetLastError_
push str.:7:SetServerLockedFlagFile___FAILED:_WriteFile___FAILED:__s
call fcn.004020c2
pop ecx
pop ecx
push dword [ebp - 0x78]
call fcn.004010dc
test eax, eax
pop ecx
jne 0x470b93
push dword [ebp - 0x78]
lea eax, [ebp + 0x94]
push str._nIn_Source_File:__s
push eax
call fcn.0050dd60
add esp, 0xc
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x94]
push eax
call fcn.00508320
pop ecx
push eax
lea eax, [ebp + 0x94]
push eax
push edi
call esi
cmp dword [ebp + 0x1dc], ebx
jle 0x470bd2
push dword [ebp + 0x1dc]
lea eax, [ebp + 0x94]
push str._nFrom_Source_Line:__d
push eax
call fcn.0050dd60
add esp, 0xc
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x94]
push eax
call fcn.00508320
pop ecx
push eax
lea eax, [ebp + 0x94]
push eax
push edi
call esi
push 0x274f
push str..Network.c
push str.SetServerLockedFlagFile
push edi
call fcn.00403134
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0x1c8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x1cc
leave
ret