Function at 0x5a23f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7a18
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 0x5a26d6
cmp byte [ecx + 0x41], 0
je 0x5a26d6
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x5a2440
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 0x5a2463
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 0x5a2584
mov ebx, eax
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x5a24aa
mov ecx, eax
cmp edx, 0x10
jae 0x5a2493
lea ecx, [ebp - 0x30]
cmp ecx, ebx
ja 0x5a24aa
mov ecx, eax
cmp edx, 0x10
jae 0x5a24a1
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x20]
add ecx, esi
cmp ebx, ecx
jbe 0x5a24b5
call fcn.005a5131
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
cmp ecx, 0xfffffffc
je 0x5a24db
mov ecx, eax
cmp edx, 0x10
jae 0x5a24c7
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x20]
add ecx, esi
cmp ebx, ecx
jb 0x5a24db
call fcn.005a5131
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x5a258f
mov esi, eax
test eax, eax
je 0x5a2511
mov ecx, eax
cmp edx, 0x10
jae 0x5a24f7
lea ecx, [ebp - 0x30]
cmp ecx, esi
ja 0x5a2511
mov ecx, eax
cmp edx, 0x10
jae 0x5a2505
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
cmp esi, ecx
jbe 0x5a251c
call fcn.005a5131
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
cmp ecx, 0xfffffffc
je 0x5a253a
cmp edx, 0x10
jae 0x5a252c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
add eax, edx
cmp esi, eax
jb 0x5a253a
call fcn.005a5131
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 0x5a2597
sub eax, 1
je 0x5a259e
sub eax, 2
lea ecx, [ebp - 0x34]
je 0x5a26be
call fcn.00416740
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 0x5a2489
lea esi, [ebp - 0x30]
jmp 0x5a24ed
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x41], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x5a26a3
mov esi, eax
test eax, eax
je 0x5a25d4
mov ecx, eax
cmp edx, 0x10
jae 0x5a25bd
lea ecx, [ebp - 0x30]
cmp ecx, esi
ja 0x5a25d4
mov ecx, eax
cmp edx, 0x10
jae 0x5a25cb
lea ecx, [ebp - 0x30]
mov edi, dword [ebp - 0x20]
add ecx, edi
cmp esi, ecx
jbe 0x5a25df
call fcn.005a5131
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
cmp ecx, 0xfffffffc
je 0x5a2605
mov ecx, eax
cmp edx, 0x10
jae 0x5a25f1
lea ecx, [ebp - 0x30]
mov edi, dword [ebp - 0x20]
add ecx, edi
cmp esi, ecx
jb 0x5a2605
call fcn.005a5131
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
sub edi, esi
je 0x5a2682
cmp edx, 0x10
jb 0x5a26ab
mov esi, eax
test eax, eax
je 0x5a263c
mov ecx, eax
cmp edx, 0x10
jae 0x5a2625
lea ecx, [ebp - 0x30]
cmp ecx, esi
ja 0x5a263c
mov ecx, eax
cmp edx, 0x10
jae 0x5a2633
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
add ecx, ebx
cmp esi, ecx
jbe 0x5a2647
call fcn.005a5131
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
cmp ecx, 0xfffffffc
je 0x5a2665
cmp edx, 0x10
jae 0x5a2657
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
add eax, edx
cmp esi, eax
jb 0x5a2665
call fcn.005a5131
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.005a5569
add esp, 0x10
cmp edi, eax
jne 0x5a26b3
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
cmp byte [ecx + 0x41], 0
je 0x5a26bb
test edi, edi
jne 0x5a2477
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.0041e240
jmp 0x5a2471
lea esi, [ebp - 0x30]
jmp 0x5a25b3
lea esi, [ebp - 0x30]
jmp 0x5a261b
lea ecx, [ebp - 0x34]
jmp 0x5a256c
lea ecx, [ebp - 0x34]
call fcn.00416740
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