Function at 0x6153a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6482c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
cmp dword [ecx + 0x3c], 0
mov dword [ebp - 0x10], ecx
je 0x615686
cmp byte [ecx + 0x41], 0
je 0x615686
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x6153f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 8
cmp ecx, 0x10
jae 0x615413
lea eax, [ebp - 0x30]
mov byte [eax + 8], 0
push ebx
push esi
mov dword [ebp - 4], 0
push edi
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x615534
mov ebx, eax
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x61545a
mov ecx, eax
cmp edx, 0x10
jae 0x615443
lea ecx, [ebp - 0x30]
cmp ecx, ebx
ja 0x61545a
mov ecx, eax
cmp edx, 0x10
jae 0x615451
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x20]
add ecx, esi
cmp ebx, ecx
jbe 0x615465
call fcn.005f3d73
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
cmp ecx, 0xfffffffc
je 0x61548b
mov ecx, eax
cmp edx, 0x10
jae 0x615477
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x20]
add ecx, esi
cmp ebx, ecx
jb 0x61548b
call fcn.005f3d73
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x61553f
mov esi, eax
test eax, eax
je 0x6154c1
mov ecx, eax
cmp edx, 0x10
jae 0x6154a7
lea ecx, [ebp - 0x30]
cmp ecx, esi
ja 0x6154c1
mov ecx, eax
cmp edx, 0x10
jae 0x6154b5
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
cmp esi, ecx
jbe 0x6154cc
call fcn.005f3d73
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
cmp ecx, 0xfffffffc
je 0x6154ea
cmp edx, 0x10
jae 0x6154dc
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
add eax, edx
cmp esi, eax
jb 0x6154ea
call fcn.005f3d73
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x615547
sub eax, 1
je 0x61554e
sub eax, 2
lea ecx, [ebp - 0x34]
je 0x61566e
call fcn.00415260
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ebx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
jmp 0x615439
lea esi, [ebp - 0x30]
jmp 0x61549d
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x41], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x615653
mov esi, eax
test eax, eax
je 0x615584
mov ecx, eax
cmp edx, 0x10
jae 0x61556d
lea ecx, [ebp - 0x30]
cmp ecx, esi
ja 0x615584
mov ecx, eax
cmp edx, 0x10
jae 0x61557b
lea ecx, [ebp - 0x30]
mov edi, dword [ebp - 0x20]
add ecx, edi
cmp esi, ecx
jbe 0x61558f
call fcn.005f3d73
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
cmp ecx, 0xfffffffc
je 0x6155b5
mov ecx, eax
cmp edx, 0x10
jae 0x6155a1
lea ecx, [ebp - 0x30]
mov edi, dword [ebp - 0x20]
add ecx, edi
cmp esi, ecx
jb 0x6155b5
call fcn.005f3d73
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
sub edi, esi
je 0x615632
cmp edx, 0x10
jb 0x61565b
mov esi, eax
test eax, eax
je 0x6155ec
mov ecx, eax
cmp edx, 0x10
jae 0x6155d5
lea ecx, [ebp - 0x30]
cmp ecx, esi
ja 0x6155ec
mov ecx, eax
cmp edx, 0x10
jae 0x6155e3
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
add ecx, ebx
cmp esi, ecx
jbe 0x6155f7
call fcn.005f3d73
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
cmp ecx, 0xfffffffc
je 0x615615
cmp edx, 0x10
jae 0x615607
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
add eax, edx
cmp esi, eax
jb 0x615615
call fcn.005f3d73
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.005f43d6
add esp, 0x10
cmp edi, eax
jne 0x615663
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
cmp byte [ecx + 0x41], 0
je 0x61566b
test edi, edi
jne 0x615427
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.0041e190
jmp 0x615421
lea esi, [ebp - 0x30]
jmp 0x615563
lea esi, [ebp - 0x30]
jmp 0x6155cb
lea ecx, [ebp - 0x34]
jmp 0x61551c
lea ecx, [ebp - 0x34]
call fcn.00415260
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret