Function at 0x56b3a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x660cab
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
jne 0x56b3d8
xor eax, eax
jmp 0x56b5d3
cmp byte [esi + 0x11], 0
je 0x56b4c2
xor edi, edi
cmp dword [esi + 0x24], edi
jne 0x56b419
push 0x44
call fcn.005f44e8
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edi
cmp eax, edi
je 0x56b408
mov ecx, eax
call fcn.0057a230
jmp 0x56b40a
xor eax, eax
mov dword [esp + 0x30], 0xffffffff
mov dword [esi + 0x24], eax
cmp eax, edi
je 0x56b3d1
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push 1
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
call fcn.0057a120
test eax, eax
je 0x56b3d1
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp dword [eax + 8], edi
jbe 0x56b4ae
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 4]
mov ebp, dword [edx + edi*8]
lea edx, [ebx + ebp]
cmp edx, eax
jbe 0x56b467
sub eax, ebx
mov ebp, eax
push 0
mov dword [esp + 0x3c], 0
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + edi*8 + 4]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi + 0x14]
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x56b3d1
cmp ebp, dword [esp + 0x38]
jne 0x56b3d1
mov eax, dword [esp + 0x14]
add ebx, ebp
cmp eax, ebx
jbe 0x56b4ae
mov ecx, dword [esi + 0x24]
inc edi
cmp edi, dword [ecx + 8]
jb 0x56b453
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
mov eax, 1
jmp 0x56b5d3
cmp byte [esi + 0x10], 0
je 0x56b5bb
cmp dword [esi + 0x18], 0
jne 0x56b4ea
push 0
push 0
push 0
call fcn.005ed980
add esp, 0xc
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], 0
cmp dword [esi + 0x1c], 0
jne 0x56b500
push 0x2da0
call fcn.0062286f
add esp, 4
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x18], 0
je 0x56b3d1
cmp dword [esi + 0x1c], 0
je 0x56b3d1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov dword [eax], 0
lea ebx, [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x30], 0x2da0
call fcn.005f2420
add esp, 0x18
cmp dword [ebx], 0x1000000
mov ebp, eax
ja 0x56b3d1
mov eax, dword [esi + 0x1c]
mov edi, dword [esp + 0x38]
mov edx, dword [esi + 0x14]
push 0
lea ecx, [esp + 0x18]
push ecx
sub edi, eax
push edi
push eax
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x56b3d1
cmp edi, dword [esp + 0x14]
jne 0x56b3d1
cmp ebp, 3
je 0x56b531
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, 1
jmp 0x56b5d3
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push 0
push edx
mov edx, dword [esp + 0x40]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc