Function at 0x525fdb
Capabilities:
Write file on windows

Disassembly:
push 0x128
mov eax, 0x6031fd
call fcn.005cb937
mov edi, ecx
mov dword [ebp - 0xc4], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x6c1b44], ebx
je 0x526514
cmp dword [edi + 0x28], ebx
je 0x5264d9
call dword [0x63441c]
push 0xffffffffffffffff
push dword [0x6c4ddc]
mov dword [ebp - 0xc0], eax
call dword [0x6343c4]
mov dword [ebp - 0xbc], ebx
lea ebx, [ebp - 0xc0]
call fcn.00526a8a
mov ecx, eax
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jle 0x526095
push dword [ebp - 0xbc]
lea ebx, [ebp - 0xc0]
call fcn.00526a8a
mov esi, eax
call fcn.0040ba07
lea edx, [edi + 0x14]
push edx
mov ecx, eax
call fcn.00404b75
test eax, eax
je 0x5264c9
inc dword [ebp - 0xbc]
call fcn.00526a8a
mov ecx, eax
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp dword [ebp - 0xbc], eax
jl 0x526049
lea eax, [edi + 0x14]
push eax
lea ebx, [ebp - 0xc0]
call fcn.00526a8a
call fcn.0040ba2b
call fcn.00526a8a
mov ecx, eax
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jbe 0x5264c9
push 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x68], 0xf
call fcn.004055a6
mov byte [ebp - 4], 1
and dword [ebp - 0xbc], 0
call fcn.00526a8a
mov ecx, eax
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jle 0x52615a
cmp dword [ebp - 0x6c], 0
je 0x526114
mov esi, 0x65d718
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [ebp - 0x80]
call fcn.00403f16
push dword [ebp - 0xbc]
lea ebx, [ebp - 0xc0]
call fcn.00526a8a
mov esi, eax
call fcn.0040ba07
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x80]
call fcn.00403e6f
inc dword [ebp - 0xbc]
call fcn.00526a8a
mov ecx, eax
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp dword [ebp - 0xbc], eax
jl 0x5260f8
mov esi, dword [0x6c4dd8]
lea eax, [ebp - 0x80]
push eax
push 0x6c4dbc
lea ebx, [ebp - 0xd0]
call fcn.0041276d
xor ebx, ebx
cmp dword [0x6c4df4], ebx
je 0x5264bb
cmp esi, dword [0x6c4dd8]
je 0x5264bb
push str.DeadLock.txt
mov edi, 0x6c4de0
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00404922
add esp, 0xc
mov byte [ebp - 4], 2
cmp esi, ebx
jne 0x526390
push ebx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x84], 0xf
call fcn.004055a6
push 1
lea eax, [ebp - 0x9c]
push 0x4000
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.005482fb
add esp, 0xc
mov esi, 0x641890
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea eax, [ebp - 0x9c]
push eax
xor eax, eax
call fcn.00406e21
push ebx
cmp eax, 0xffffffff
je 0x52631c
call fcn.005c337e
mov dword [ebp - 0xd8], eax
pop ecx
lea eax, [ebp - 0xd8]
push eax
mov esi, str._Y_m_d_H_M
lea edi, [ebp - 0xc0]
mov dword [ebp - 0xd4], edx
call fcn.00404cf1
mov byte [ebp - 4], 4
push dword [eax]
lea ecx, [ebp - 0xb8]
call fcn.0040518c
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xc0]
add ecx, 0xfffffff0
call fcn.00405172
push ebx
push 0x6c4de0
call fcn.00548f1f
push 0x642994
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00404922
add esp, 0x14
lea ecx, [ebp - 0xb8]
push ecx
push eax
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 7
call fcn.00404969
add esp, 0xc
push str..bak
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 4], 8
call fcn.00404922
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x5262b8
mov eax, dword [eax + 4]
jmp 0x5262bb
add eax, 4
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x5262c7
lea ecx, [ebp - 0x28]
push ebx
push eax
push ecx
call dword [0x634470]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x118]
call fcn.004055c2
push ebx
push esi
lea ecx, [ebp - 0x134]
call fcn.004055c2
push ebx
push esi
lea ecx, [ebp - 0xfc]
call fcn.004055c2
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x526306
lea eax, [ebp - 0x28]
push eax
call dword [0x634478]
push ebx
push esi
lea ecx, [ebp - 0xb8]
call fcn.004055c2
jmp 0x52637e
push edi
call fcn.00548f1f
push str..bak
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00404922
add esp, 0x14
cmp dword [eax + 0x18], 0x10
jb 0x526345
mov eax, dword [eax + 4]
jmp 0x526348
add eax, 4
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x526354
lea ecx, [ebp - 0x28]
push ebx
push eax
push ecx
call dword [0x634470]
push ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.004055c2
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x526377
lea eax, [ebp - 0x28]
push eax
call dword [0x634478]
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.004055c2
push ebx
call fcn.005c337e
sub esp, 0x18
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x80]
mov ecx, esp
mov dword [ebp - 0xc0], esp
push eax
mov dword [ebp - 0xc8], edx
call fcn.004051ae
lea ecx, [ebp - 0x64]
call fcn.005256a5
add esp, 0x1c
mov byte [ebp - 4], 9
cmp dword [ebp - 0x50], ebx
je 0x5263e0
mov esi, 0x6414f8
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [ebp - 0x64]
call fcn.00403f16
lea eax, [ebp - 0xcc]
push eax
mov esi, 0x65d794
lea edi, [ebp - 0xc0]
call fcn.00404cf1
push 0x10
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x7c]
pop esi
cmp dword [ebp - 0x68], esi
jae 0x526409
lea edx, [ebp - 0x7c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], esi
jae 0x526416
lea ecx, [ebp - 0x60]
push edx
push eax
push ecx
push str._s__s___s_n
mov ecx, 0x400
lea edx, [ebp - 0x48]
call fcn.0054aa9f
mov ecx, dword [ebp - 0xc0]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00405172
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xbc], ebx
cmp dword [ebp - 0x14], esi
jae 0x52644d
lea eax, [ebp - 0x28]
push 0x65d7b4
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.005c8fa1
add esp, 0xc
cmp dword [ebp - 0xbc], ebx
je 0x526494
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x526475
lea eax, [ebp - 0x44]
push dword [ebp - 0xbc]
push dword [ebp - 0x34]
push 1
push eax
call fcn.005c9156
push dword [ebp - 0xbc]
call fcn.005c924f
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004055c2
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004055c2
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004055c2
mov edi, dword [ebp - 0xc4]
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.004055c2
push dword [0x6c4ddc]
call dword [0x6343c0]
xor ebx, ebx
jmp 0x5264e4
push str.LOCK_NEEDS_A_NAME_n
call dword [0x634404]
push ebx
push 0x6414f8
lea esi, [edi + 0x14]
push esi
call fcn.00406ca8
cmp eax, 0xffffffff
jne 0x526509
push ebx
push 0x65d718
push esi
call fcn.00406ca8
cmp eax, 0xffffffff
je 0x526514
push str.LOCK_CANNOT_HAVE_SPACES_or____n
call dword [0x634404]
lea eax, [ebp - 0xe0]
push eax
call fcn.0053b6fe
pop ecx
push 0xffffffffffffffff
push dword [edi]
call dword [0x6343c4]
lea esi, [ebp - 0xe0]
call fcn.0053b709
mov esi, eax
mov eax, dword [0x6bb7f8]
cmp eax, ebx
jle 0x5266b2
cmp dword [0x6c4df4], ebx
je 0x5266b2
cmp esi, eax
jle 0x5266b2
push 0xffffffffffffffff
push dword [0x6c4ddc]
call dword [0x6343c4]
push str.DeadLock.txt
lea eax, [ebp - 0x64]
push 0x6c4de0
push eax
call fcn.00404922
add esp, 0xc
push ebx
mov byte [ebp - 4], 0xb
call fcn.005c337e
cmp dword [edi + 0x2c], 0x10
pop ecx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], edx
jb 0x52659f
mov edi, dword [edi + 0x18]
jmp 0x5265a2
add edi, 0x18
push edi
push esi
push str.__d_ms___s
mov ecx, 0x800
lea edx, [ebp - 0x9c]
call fcn.0054aa9f
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
mov esi, 0x65d794
lea edi, [ebp - 0xc0]
mov byte [ebp - 4], 0xc
call fcn.00404cf1
push 0x10
mov byte [ebp - 4], 0xd
mov edx, dword [ebp + 0xc]
pop esi
cmp dword [ebp + 0x20], esi
jae 0x5265e9
lea edx, [ebp + 0xc]
mov ecx, dword [ebp - 0x98]
cmp dword [ebp - 0x84], esi
jae 0x5265fd
lea ecx, [ebp - 0x98]
push edx
push ecx
push dword [eax]
mov ecx, 0x400
push str.WAITtime___s___s___s__n
lea edx, [ebp - 0x48]
call fcn.0054aa9f
mov ecx, dword [ebp - 0xc0]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00405172
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xbc], ebx
cmp dword [ebp - 0x4c], esi
jae 0x526635
lea eax, [ebp - 0x60]
push 0x65d7b4
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.005c8fa1
add esp, 0xc
cmp dword [ebp - 0xbc], ebx
je 0x52667c
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x52665d
lea eax, [ebp - 0x44]
push dword [ebp - 0xbc]
push dword [ebp - 0x34]
push 1
push eax
call fcn.005c9156
push dword [ebp - 0xbc]
call fcn.005c924f
add esp, 0x14
push dword [0x6c4ddc]
call dword [0x6343c0]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004055c2
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.004055c2
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004055c2
mov edi, dword [ebp - 0xc4]
lea eax, [edi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x5266c3
push eax
call fcn.0053b6fe
pop ecx
inc dword [edi + 4]
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004055c2
xor eax, eax
inc eax
call fcn.005cb9ba
ret 0x1c