Function at 0x53d000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a30b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 1
push dword [esi + 0x1c]
mov byte [esi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005d05b0
push 0
call fcn.005df2a6
add esp, 0x10
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
nop dword [eax + eax]
lea edi, [esi + 0xb24]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0xb4c]
test ebx, ebx
je 0x53d27f
mov eax, dword [esi + 0xb3c]
mov edi, dword [esi + 0xb48]
test eax, eax
jne 0x53d08f
xor edx, edx
jmp 0x53d091
mov edx, dword [eax]
mov ecx, dword [edx + 8]
mov eax, edi
shr eax, 2
dec ecx
and ecx, eax
and edi, 3
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + edi*4]
lea eax, [ebx - 1]
mov dword [esi + 0xb4c], eax
test eax, eax
jne 0x53d0bd
mov dword [esi + 0xb48], eax
jmp 0x53d0c3
inc dword [esi + 0xb48]
lea eax, [esi + 0xb24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
test eax, eax
js 0x53d0db
cmp eax, dword [esi + 0x78]
jle 0x53d0ea
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x78]
jmp 0x53d060
imul ebx, eax, 0x88
add ebx, esi
cmp dword [edi + 4], 0
je 0x53d1aa
push dword [edi + 0x1c]
lea eax, [edi + 0x20]
mov dword [ebp - 0x74], 0
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
call fcn.00403030
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 0
push eax
push dword [edi + 8]
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.0053bb50
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x70]
cmp edx, 0x10
jb 0x53d17e
mov ecx, dword [ebp - 0x84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x53d174
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53d3b0
push edx
push ecx
call fcn.005b8996
add esp, 8
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x53d19b
push eax
call fcn.005d3921
add esp, 4
mov dword [ebx + 0xf8], 0
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x78]
jmp 0x53d060
add dword [esi + 0xb90], 1
adc dword [esi + 0xb94], 0
cmp byte [ebx + 0xd8], 0
je 0x53d0db
mov eax, dword [edi + 0xc]
cmp eax, dword [ebx + 0xc8]
jl 0x53d0db
cmp byte [ebx + 0xcd], 0
je 0x53d253
push edi
mov ecx, esi
call fcn.0053c8c0
test al, al
jne 0x53d1f8
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x78]
jmp 0x53d060
mov ecx, dword [ebx + 0xf8]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x6c], eax
test ecx, ecx
je 0x53d23e
test eax, eax
je 0x53d23e
push ecx
push eax
lea eax, [edi + 0x20]
push 1
push eax
call fcn.005d7fd4
add esp, 0x10
cmp eax, dword [ebp - 0x6c]
je 0x53d23e
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x53d23e
push eax
call fcn.005d3921
add esp, 4
mov dword [ebx + 0xf8], 0
mov eax, dword [ebx + 0xf4]
add eax, dword [edi + 0x1c]
mov dword [ebx + 0xf4], eax
mov eax, dword [edi]
inc dword [ebp + eax*4 - 0x60]
add dword [esi + 0xb78], 1
lea ecx, [esi + 0x10]
push edi
adc dword [esi + 0xb7c], 0
mov eax, dword [edi + 0x1c]
cdq
add dword [esi + 0xb80], eax
mov eax, dword [ecx]
adc dword [esi + 0xb84], edx
call dword [eax + 0x78]
jmp 0x53d060
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jl 0x53d2e8
lea edi, [esi + 0xf8]
mov cl, byte [edi - 0x20]
mov al, cl
test cl, cl
je 0x53d2bd
cmp dword [ebp + ebx*4 - 0x60], 0
jle 0x53d2bd
mov edx, dword [edi]
test edx, edx
je 0x53d2b5
push edx
call fcn.005d71f5
mov al, byte [edi - 0x20]
add esp, 4
mov dword [ebp + ebx*4 - 0x60], 0
test al, al
jne 0x53d2d6
mov eax, dword [edi]
test eax, eax
je 0x53d2d6
push eax
call fcn.005d3921
add esp, 4
mov dword [edi], 0
inc ebx
add edi, 0x88
cmp ebx, dword [esi + 0x78]
jle 0x53d293
lea edi, [esi + 0xb24]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x14], 0
jne 0x53d2ff
cmp dword [esi + 0xb4c], 0
je 0x53d351
cmp dword [esi + 0x20], 0
je 0x53d066
push 0
call fcn.005df2a6
mov edi, eax
add esp, 4
sub edi, dword [ebp - 0x64]
mov ecx, edx
mov eax, dword [esi + 0x20]
sbb ecx, dword [ebp - 0x68]
cdq
cmp ecx, edx
jl 0x53d060
jg 0x53d339
cmp edi, eax
lea edi, [esi + 0xb24]
jbe 0x53d066
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 0x58]
push 0
call fcn.005df2a6
add esp, 4
jmp 0x53d055
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jl 0x53d394
lea edi, [esi + 0xf8]
nop
cmp byte [edi - 0x20], 0
je 0x53d388
mov byte [edi - 0x20], 0
test ebx, ebx
js 0x53d388
cmp ebx, dword [esi + 0x78]
jg 0x53d388
mov eax, dword [edi]
test eax, eax
je 0x53d388
push eax
call fcn.005d3921
add esp, 4
mov dword [edi], 0
inc ebx
add edi, 0x88
cmp ebx, dword [esi + 0x78]
jle 0x53d360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
call fcn.005d36fe
int3