Function at 0x447030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
push 0x31
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x3b]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x248], ebx
mov byte [ebp - 0x3c], bl
call fcn.004b53e0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x13b]
push ebx
push eax
mov byte [ebp - 0x13c], bl
call fcn.004b53e0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x243]
push ebx
push eax
mov byte [ebp - 0x244], bl
call fcn.004b53e0
add esp, 0xc
mov edx, esi
call fcn.0047c3ca
test eax, eax
je 0x4470b3
xor eax, eax
jmp 0x447279
push esi
lea edi, [ebp - 0x244]
call fcn.0044286c
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
pop ecx
push ebx
mov edi, SQLGetDiagRec
push edi
push 1
push ebx
push 7
push 6
lea eax, [ebp - 0x244]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x254], eax
jne 0x447162
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
push 4
push ebx
push 7
mov dword [ebp - 0x250], eax
push 6
lea eax, [ebp - 0x244]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x254], eax
jne 0x447162
call fcn.004a4ba8
sub eax, dword [0x62d598]
cmp eax, 0xea60
ja 0x44712c
call fcn.0040eb6c
test eax, eax
jne 0x4470ac
call fcn.004a4ba8
mov dword [0x62d598], eax
mov eax, str._GetLastError_
push eax
push dword [ebp - 0x250]
push eax
push dword [ebp - 0x250]
lea eax, [ebp - 0x244]
push eax
push str.:3:SetServerLockedFlagFile___FAILED:_10min:_CreateFile___s___FAILED:_GetLastError___should_be___ld:__s_ld:_Second_Error:__s
call fcn.00417db7
add esp, 0x18
jmp 0x4470ac
push 0x32
lea eax, [ebp - 0x3c]
call fcn.004406a5
cmp dword [ebp + 8], ebx
pop ecx
je 0x447183
push 0x4d420c
push 0x32
pop eax
lea esi, [ebp - 0x3c]
call fcn.0047c4cc
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x13c]
push str._nLock_was_initiated_by:__s
push eax
call fcn.004b532e
add esp, 0xc
push ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004b4450
mov edi, dword [ebp - 0x254]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
push edi
call esi
test eax, eax
jne 0x4471ec
mov eax, dword [0x62d594]
inc dword [0x62d594]
cmp eax, 0xa
jae 0x4471ec
push str._GetLastError_
push str.:7:SetServerLockedFlagFile___FAILED:_WriteFile___FAILED:__s
call fcn.004178df
pop ecx
pop ecx
mov edx, dword [ebp - 0x24c]
call fcn.0047c3ca
test eax, eax
jne 0x447235
push dword [ebp - 0x24c]
lea eax, [ebp - 0x13c]
push str._nIn_Source_File:__s
push eax
call fcn.004b532e
add esp, 0xc
push ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004b4450
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
push edi
call esi
cmp dword [ebp + 0x10], ebx
jle 0x447271
push dword [ebp + 0x10]
lea eax, [ebp - 0x13c]
push str._nFrom_Source_Line:__d
push eax
call fcn.004b532e
add esp, 0xc
push ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004b4450
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
push edi
call esi
call fcn.0041d762
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret