Function at 0x56ec70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x68c], ecx
cmp dword [ebp + 0x14], 3
je 0x56eca5
cmp dword [ebp + 0x14], 2
je 0x56eca5
cmp dword [ebp + 0x14], 1
je 0x56eca5
mov eax, 0x10000
jmp 0x56f2d4
cmp dword [ebp + 0x14], 3
jne 0x56ee02
mov eax, dword [ebp - 0x68c]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x56ed73
mov edx, dword [ebp - 0x68c]
cmp dword [edx + 4], 0xffffffff
je 0x56ecde
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.0056d230
add esp, 4
mov edx, dword [ebp - 0x68c]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x56ed05
mov eax, 0x10000
jmp 0x56f2d4
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x56ed26
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.0056d7e0
add esp, 4
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x56ed49
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
push eax
call fcn.0056d720
add esp, 4
jmp 0x56ed26
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.0056e7b0
add esp, 8
mov edx, dword [ebp - 0x68c]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x451]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx]
push edx
call fcn.0056d300
add esp, 0x10
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jg 0x56edc0
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.0056d230
add esp, 4
mov edx, dword [ebp - 0x68c]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x451]
test eax, eax
je 0x56edd2
xor eax, eax
jmp 0x56f2d4
cmp dword [ebp - 0x450], 0
jle 0x56ede5
mov eax, 0x600
jmp 0x56f2d4
cmp dword [ebp - 0x450], 0xffffff96
jne 0x56edf8
mov eax, 0x1000
jmp 0x56f2d4
mov eax, 0x5000000
jmp 0x56f2d4
mov ecx, dword [ebp - 0x68c]
cmp dword [ecx + 4], 0xffffffff
je 0x56ee1f
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
push eax
call fcn.0056d230
add esp, 4
mov ecx, dword [ebp - 0x68c]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x56ee46
mov eax, 0x10000
jmp 0x56f2d4
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x56ee67
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
push eax
call fcn.0056d7e0
add esp, 4
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x56ee8a
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx]
push edx
call fcn.0056d720
add esp, 4
jmp 0x56ee67
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x68c]
call fcn.0056ddc0
mov edx, dword [ebp - 0x34]
and edx, 0x10
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 5], dl
movzx eax, byte [ebp - 5]
test eax, eax
je 0x56ef6c
cmp dword [ebp + 0x14], 1
jne 0x56eec8
xor eax, eax
jmp 0x56f2d4
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x458], ecx
mov edx, dword [ebp - 0x458]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x56ef15
mov ecx, dword [ebp - 0x458]
movzx edx, word [ecx]
cmp edx, 0x5c
je 0x56ef15
mov eax, dword [ebp - 0x458]
movzx ecx, word [eax]
test ecx, ecx
je 0x56ef09
mov edx, dword [ebp - 0x458]
movzx eax, word [edx + 2]
cmp eax, 0x3a
je 0x56ef15
mov dword [ebp - 0x690], 0
jmp 0x56ef1f
mov dword [ebp - 0x690], 1
mov cl, byte [ebp - 0x690]
mov byte [ebp - 0x452], cl
movzx edx, byte [ebp - 0x452]
test edx, edx
je 0x56ef49
mov eax, dword [ebp - 0x458]
push eax
push 0
call fcn.00569830
add esp, 8
jmp 0x56ef65
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x68c]
add edx, 0x244
push edx
call fcn.00569830
add esp, 8
xor eax, eax
jmp 0x56f2d4
mov word [ebp - 0x448], 0
cmp dword [ebp + 0x14], 1
jne 0x56ef86
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x56f139
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x460], ecx
mov edx, dword [ebp - 0x460]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x674], eax
mov ecx, dword [ebp - 0x674]
movzx edx, word [ecx]
test edx, edx
je 0x56eff0
mov eax, dword [ebp - 0x674]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x56efd0
mov edx, dword [ebp - 0x674]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x56efdf
mov ecx, dword [ebp - 0x674]
add ecx, 2
mov dword [ebp - 0x464], ecx
mov edx, dword [ebp - 0x674]
add edx, 2
mov dword [ebp - 0x674], edx
jmp 0x56efa7
push 0x104
mov eax, dword [ebp - 0x460]
push eax
lea ecx, [ebp - 0x670]
push ecx
call fcn.005285da
add esp, 0xc
mov edx, dword [ebp - 0x464]
cmp edx, dword [ebp - 0x460]
jne 0x56f024
mov word [ebp - 0x670], 0
jmp 0x56f03c
mov eax, dword [ebp - 0x464]
sub eax, dword [ebp - 0x460]
sar eax, 1
mov word [ebp + eax*2 - 0x670], 0
movzx ecx, word [ebp - 0x670]
cmp ecx, 0x2f
je 0x56f077
movzx edx, word [ebp - 0x670]
cmp edx, 0x5c
je 0x56f077
movzx eax, word [ebp - 0x670]
test eax, eax
je 0x56f06b
movzx ecx, word [ebp - 0x66e]
cmp ecx, 0x3a
je 0x56f077
mov dword [ebp - 0x694], 0
jmp 0x56f081
mov dword [ebp - 0x694], 1
mov dl, byte [ebp - 0x694]
mov byte [ebp - 0x459], dl
movzx eax, byte [ebp - 0x459]
test eax, eax
je 0x56f0cd
mov ecx, dword [ebp - 0x464]
push ecx
lea edx, [ebp - 0x670]
push edx
push 0x60a864
lea eax, [ebp - 0x448]
push eax
call fcn.004d3da0
add esp, 0x10
lea ecx, [ebp - 0x670]
push ecx
push 0
call fcn.00569830
add esp, 8
jmp 0x56f118
mov edx, dword [ebp - 0x464]
push edx
lea eax, [ebp - 0x670]
push eax
mov ecx, dword [ebp - 0x68c]
add ecx, 0x244
push ecx
push 0x60a870
lea edx, [ebp - 0x448]
push edx
call fcn.004d3da0
add esp, 0x14
lea eax, [ebp - 0x670]
push eax
mov ecx, dword [ebp - 0x68c]
add ecx, 0x244
push ecx
call fcn.00569830
add esp, 8
push 0
mov edx, dword [ebp - 0x34]
push edx
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x56f149
mov eax, 0x200
jmp 0x56f2d4
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.0056e7b0
add esp, 8
mov edx, dword [ebp - 0x68c]
cmp dword [edx + 0x240], 0
jne 0x56f19b
push 0x4000
call fcn.0052325f
add esp, 4
mov dword [ebp - 0x688], eax
mov eax, dword [ebp - 0x68c]
mov ecx, dword [ebp - 0x688]
mov dword [eax + 0x240], ecx
mov dword [ebp - 0x44c], 0
cmp dword [ebp - 0x44c], 0
jne 0x56f281
lea edx, [ebp - 0x679]
push edx
push 0x4000
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax + 0x240]
push ecx
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
push eax
call fcn.0056d300
add esp, 0x10
mov dword [ebp - 0x678], eax
cmp dword [ebp - 0x678], 0xffffff96
jne 0x56f1fa
mov dword [ebp - 0x44c], 0x1000
jmp 0x56f281
cmp dword [ebp - 0x678], 0
jge 0x56f20f
mov dword [ebp - 0x44c], 0x5000000
jmp 0x56f281
cmp dword [ebp - 0x678], 0
jle 0x56f25a
push 0
lea ecx, [ebp - 0x684]
push ecx
mov edx, dword [ebp - 0x678]
push edx
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax + 0x240]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x680], eax
cmp dword [ebp - 0x680], 0
jne 0x56f25a
mov dword [ebp - 0x44c], 0x400
jmp 0x56f281
movzx eax, byte [ebp - 0x679]
test eax, eax
je 0x56f267
jmp 0x56f281
cmp dword [ebp - 0x678], 0
jne 0x56f27c
mov dword [ebp - 0x44c], 0x5000000
jmp 0x56f281
jmp 0x56f1a5
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx]
push edx
call fcn.0056d230
add esp, 4
cmp dword [ebp - 0x44c], 0
jne 0x56f2b1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x56f2c1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44c], 0
je 0x56f2d2
mov eax, dword [ebp - 0x44c]
jmp 0x56f2d4
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret 0x10