Function at 0x566c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6bc
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x650], ecx
cmp dword [ebp + 0x14], 3
je 0x566c36
cmp dword [ebp + 0x14], 2
je 0x566c36
cmp dword [ebp + 0x14], 1
je 0x566c36
mov eax, 0x10000
jmp 0x56744f
cmp dword [ebp + 0x14], 3
jne 0x566d93
mov eax, dword [ebp - 0x650]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x566d04
mov edx, dword [ebp - 0x650]
cmp dword [edx + 4], 0xffffffff
je 0x566c6f
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
push ecx
call fcn.005647c0
add esp, 4
mov edx, dword [ebp - 0x650]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x566c96
mov eax, 0x10000
jmp 0x56744f
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x566cb7
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
push ecx
call fcn.00564740
add esp, 4
mov edx, dword [ebp - 0x650]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x566cda
mov edx, dword [ebp - 0x650]
mov eax, dword [edx]
push eax
call fcn.00565080
add esp, 4
jmp 0x566cb7
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
push ecx
call fcn.00565510
add esp, 8
mov edx, dword [ebp - 0x650]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x416]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
push edx
call fcn.00565810
add esp, 0x10
mov dword [ebp - 0x688], eax
cmp dword [ebp - 0x688], 0
jg 0x566d51
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
push ecx
call fcn.005647c0
add esp, 4
mov edx, dword [ebp - 0x650]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x416]
test eax, eax
je 0x566d63
xor eax, eax
jmp 0x56744f
cmp dword [ebp - 0x688], 0
jle 0x566d76
mov eax, 0x600
jmp 0x56744f
cmp dword [ebp - 0x688], 0xffffff96
jne 0x566d89
mov eax, 0x1000
jmp 0x56744f
mov eax, 0x5000000
jmp 0x56744f
mov ecx, dword [ebp - 0x650]
cmp dword [ecx + 4], 0xffffffff
je 0x566db0
mov edx, dword [ebp - 0x650]
mov eax, dword [edx]
push eax
call fcn.005647c0
add esp, 4
mov ecx, dword [ebp - 0x650]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x650]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x566dd7
mov eax, 0x10000
jmp 0x56744f
mov edx, dword [ebp - 0x650]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x566df8
mov edx, dword [ebp - 0x650]
mov eax, dword [edx]
push eax
call fcn.00564740
add esp, 4
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x566e1b
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
push edx
call fcn.00565080
add esp, 4
jmp 0x566df8
lea eax, [ebp - 0x64c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x650]
call fcn.00565ee0
mov edx, dword [ebp - 0x440]
and edx, 0x10
je 0x566f14
cmp dword [ebp + 0x14], 1
jne 0x566e4d
xor eax, eax
jmp 0x56744f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x664], eax
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 0x664]
movzx ecx, word [eax + edx]
cmp ecx, 0x2f
je 0x566ebd
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x664]
movzx edx, word [ecx + eax]
cmp edx, 0x5c
je 0x566ebd
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x664]
movzx eax, word [edx + ecx]
test eax, eax
je 0x566eb1
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 0x664]
movzx eax, word [edx + ecx]
cmp eax, 0x3a
je 0x566ebd
mov dword [ebp - 0x694], 0
jmp 0x566ec7
mov dword [ebp - 0x694], 1
mov cl, byte [ebp - 0x694]
mov byte [ebp - 0x659], cl
movzx edx, byte [ebp - 0x659]
test edx, edx
je 0x566ef1
mov eax, dword [ebp - 0x664]
push eax
push 0
call fcn.00567530
add esp, 8
jmp 0x566f0d
mov ecx, dword [ebp - 0x664]
push ecx
mov edx, dword [ebp - 0x650]
add edx, 0x244
push edx
call fcn.00567530
add esp, 8
xor eax, eax
jmp 0x56744f
cmp dword [ebp + 0x14], 1
jne 0x566f28
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x66c], eax
jmp 0x56714b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x678], ecx
mov edx, dword [ebp - 0x678]
mov dword [ebp - 0x660], edx
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x668], eax
mov ecx, dword [ebp - 0x668]
movzx edx, word [ecx]
test edx, edx
je 0x566f92
mov eax, dword [ebp - 0x668]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x566f72
mov edx, dword [ebp - 0x668]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x566f81
mov ecx, dword [ebp - 0x668]
add ecx, 2
mov dword [ebp - 0x660], ecx
mov edx, dword [ebp - 0x668]
add edx, 2
mov dword [ebp - 0x668], edx
jmp 0x566f49
mov eax, dword [ebp - 0x678]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00674cb1
add esp, 8
mov edx, dword [ebp - 0x660]
cmp edx, dword [ebp - 0x678]
jne 0x566fe9
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x68c], ecx
cmp dword [ebp - 0x68c], 0x208
jae 0x566fd2
jmp 0x566fd7
call fcn.0066e9b7
xor edx, edx
mov eax, dword [ebp - 0x68c]
mov word [ebp + eax - 0x20c], dx
jmp 0x567022
mov ecx, dword [ebp - 0x660]
sub ecx, dword [ebp - 0x678]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x69c], ecx
cmp dword [ebp - 0x69c], 0x208
jae 0x56700d
jmp 0x567012
call fcn.0066e9b7
xor edx, edx
mov eax, dword [ebp - 0x69c]
mov word [ebp + eax - 0x20c], dx
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x20c]
cmp eax, 0x2f
je 0x567081
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x20c]
cmp eax, 0x5c
je 0x567081
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x20c]
test eax, eax
je 0x567075
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0x20c]
cmp edx, 0x3a
je 0x567081
mov dword [ebp - 0x690], 0
jmp 0x56708b
mov dword [ebp - 0x690], 1
mov al, byte [ebp - 0x690]
mov byte [ebp - 0x65a], al
movzx ecx, byte [ebp - 0x65a]
test ecx, ecx
je 0x5670d8
mov edx, dword [ebp - 0x660]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x6e9b40
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
push 0
call fcn.00567530
add esp, 8
jmp 0x567124
mov eax, dword [ebp - 0x660]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x650]
add edx, 0x244
push edx
push 0x6e9b60
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x650]
add edx, 0x244
push edx
call fcn.00567530
add esp, 8
push 0
mov eax, dword [ebp - 0x440]
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0xffffffff
jne 0x56715e
mov eax, 0x200
jmp 0x56744f
mov edx, dword [ebp - 0x650]
mov eax, dword [edx + 0x23c]
push eax
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
push edx
call fcn.00565510
add esp, 8
mov eax, dword [ebp - 0x650]
cmp dword [eax + 0x240], 0
jne 0x5671b0
push 0x4000
call fcn.00657741
add esp, 4
mov dword [ebp - 0x6b4], eax
mov ecx, dword [ebp - 0x650]
mov edx, dword [ebp - 0x6b4]
mov dword [ecx + 0x240], edx
mov dword [ebp - 0x658], 0
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x7c]
mov eax, dword [edx + 0x5c]
xor ecx, ecx
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x680], ecx
xorpd xmm0, xmm0
movlpd qword [ebp - 0x674], xmm0
cmp dword [ebp - 0x658], 0
jne 0x5673ed
mov dword [ebp - 0x67c], 0x4000
mov dword [ebp - 0x698], 0
mov eax, dword [ebp - 0x67c]
cdq
add eax, dword [ebp - 0x674]
adc edx, dword [ebp - 0x670]
mov dword [ebp - 0x6a4], eax
mov dword [ebp - 0x6a0], edx
mov edx, dword [ebp - 0x6a0]
cmp edx, dword [ebp - 0x680]
jl 0x567268
jg 0x567240
mov eax, dword [ebp - 0x6a4]
cmp eax, dword [ebp - 0x684]
jb 0x567268
mov ecx, dword [ebp - 0x684]
sub ecx, dword [ebp - 0x674]
mov edx, dword [ebp - 0x680]
sbb edx, dword [ebp - 0x670]
mov dword [ebp - 0x67c], ecx
mov dword [ebp - 0x698], 1
lea eax, [ebp - 0x415]
push eax
mov ecx, dword [ebp - 0x67c]
push ecx
mov edx, dword [ebp - 0x650]
mov eax, dword [edx + 0x240]
push eax
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
push edx
call fcn.00565810
add esp, 0x10
mov dword [ebp - 0x654], eax
mov eax, dword [ebp - 0x67c]
cmp eax, dword [ebp - 0x654]
je 0x5672b2
mov dword [ebp - 0x6b8], 0
mov eax, dword [ebp - 0x654]
cdq
add eax, dword [ebp - 0x674]
adc edx, dword [ebp - 0x670]
mov ecx, dword [ebp - 0x650]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x7c]
xor esi, esi
add eax, dword [ecx + 0x5c]
adc edx, esi
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6a8], edx
mov edx, dword [ebp - 0x6ac]
cmp edx, dword [ebp - 0x684]
jne 0x5672ff
mov eax, dword [ebp - 0x6a8]
cmp eax, dword [ebp - 0x680]
je 0x567309
mov dword [ebp - 0x6bc], 0
cmp dword [ebp - 0x654], 0xffffff96
jne 0x567321
mov dword [ebp - 0x658], 0x1000
jmp 0x5673ed
cmp dword [ebp - 0x654], 0
jge 0x567339
mov dword [ebp - 0x658], 0x5000000
jmp 0x5673ed
cmp dword [ebp - 0x654], 0
jle 0x5673b1
mov eax, dword [ebp - 0x654]
cdq
add eax, dword [ebp - 0x674]
adc edx, dword [ebp - 0x670]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x670], edx
push 0
lea ecx, [ebp - 0x41c]
push ecx
mov edx, dword [ebp - 0x654]
push edx
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax + 0x240]
push ecx
mov edx, dword [ebp - 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
jne 0x5673a6
mov dword [ebp - 0x658], 0x400
jmp 0x5673ed
cmp dword [ebp - 0x698], 0
je 0x5673b1
jmp 0x5673ed
cmp dword [0x786e58], 0
je 0x5673c6
mov eax, dword [0x786e58]
cmp dword [eax], 1
jne 0x5673c6
jmp 0x5673ed
movzx ecx, byte [ebp - 0x415]
test ecx, ecx
je 0x5673d3
jmp 0x5673ed
cmp dword [ebp - 0x654], 0
jne 0x5673e8
mov dword [ebp - 0x658], 0x5000000
jmp 0x5673ed
jmp 0x5671e2
cmp dword [ebp - 0x658], 0
jne 0x567418
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x56742b
mov eax, dword [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
push edx
call fcn.005647c0
add esp, 4
cmp dword [ebp - 0x658], 0
je 0x56744d
mov eax, dword [ebp - 0x658]
jmp 0x56744f
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 0x10