Function at 0x5dc0a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [ebp + 0xc]
mov esi, ecx
test ebx, ebx
je 0x5dc0ca
push edx
call sub.KERNEL32.dll_GetStdHandle
test eax, eax
je 0x5dc0d9
mov edi, eax
cmp eax, 0xffffffff
jne 0x5dc0f6
call sub.KERNEL32.dll_GetLastError
jmp 0x5dc0de
mov dword [esi + 4], 0
mov dword [esi], 0
jmp 0x5dc0ee
mov eax, 6
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 1
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push edi
call sub.KERNEL32.dll_GetConsoleMode
test eax, eax
je 0x5dc161
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ecx + 4]
test eax, eax
je 0x5dc185
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp al, 4
jae 0x5dc2d1
mov cl, byte [ecx]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
jne 0x5dc1d9
mov byte [ebx + eax], cl
mov edx, ebx
mov cl, byte [ebx + 4]
inc cl
mov byte [ebx + 4], cl
movzx eax, byte [ebx]
movzx ebx, byte [eax + 0x6d34c9]
cmp bl, cl
mov dword [ebp - 0x38], ebx
jbe 0x5dc222
mov dword [esi + 4], 1
jmp 0x5dc0d1
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp + 8]
push edi
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x5dc1f0
mov ecx, dword [ebp - 0x34]
xor eax, eax
xor edx, edx
jmp 0x5dc1fc
mov edx, dword [ebp + 8]
cmp ebx, 0x1000
mov eax, 0x1000
lea ecx, [ebp - 0x1c]
cmovb eax, ebx
push eax
call fcn.0045f760
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x5dc209
cmp dword [ebp - 0x18], 0
je 0x5dc279
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
cmp eax, ebx
ja 0x5dc2f8
lea ebx, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0045f760
add esp, 4
mov ecx, ebx
call fcn.005dcc30
mov ebx, edx
jmp 0x5dc20f
mov byte [ebx + 4], 0
mov dword [esi + 8], 0x6d6028
mov dword [esi + 4], 0x1502
jmp 0x5dc0e8
call sub.KERNEL32.dll_GetLastError
xor ecx, ecx
mov edx, 1
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
jmp 0x5dc0ee
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov ecx, esi
mov edx, edi
push ebx
push eax
call fcn.005dc910
add esp, 8
jmp 0x5dc0ee
movzx eax, cl
cmp cl, 5
jae 0x5dc2ea
lea ecx, [ebp - 0x1c]
push eax
call fcn.0045f760
add esp, 4
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x1c], 1
mov byte [eax + 4], 0
je 0x5dc1dd
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
jne 0x5dc30b
lea ecx, [ebp - 0x34]
mov edx, edi
push ebx
push eax
call fcn.005dc910
add esp, 8
cmp dword [ebp - 0x34], 1
jne 0x5dc29a
movsd xmm0, qword [ebp - 0x30]
movsd qword [esi + 4], xmm0
jmp 0x5dc2c5
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x6d34c9]
cmp ecx, 2
jb 0x5dc2b7
cmp ecx, ebx
jbe 0x5dc2b7
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov byte [ecx + 4], 1
jmp 0x5dc2a7
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], ebx
cmp eax, ebx
mov dword [ebp - 0x3c], eax
jne 0x5dc31f
xor eax, eax
mov dword [esi + 4], 1
mov dword [esi], eax
jmp 0x5dc0ee
mov dword [esi + 8], 0x6d6028
mov dword [esi + 4], 0x1502
mov eax, 1
mov dword [esi], eax
jmp 0x5dc0ee
mov ecx, 0x6d5f69
mov edx, 0x3a
push 0x6d5fc8
call fcn.005bfcd0
add esp, 4
ud2
mov ecx, eax
mov edx, 4
push 0x6d6030
jmp 0x5dc301
mov ecx, eax
mov edx, ebx
push 0x6d6060
call fcn.0045ab50
add esp, 4
ud2
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x34], 0
push 0x6d6040
jmp 0x5dc331
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x34], 0
push 0x6d6050
lea eax, [ebp - 0x34]
push eax
call fcn.005dcbd0
add esp, 8
ud2