Function at 0x4035d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4105e3
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x416008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov ecx, esp
push 0x12
push str.NSudo.String.Links
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.004046a0
lea eax, [ebp - 0x90]
mov ecx, 0x416038
push eax
call fcn.00402a20
mov edi, eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push 0x1c
push str.NSudo.String.CommandLineHelp
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.004046a0
lea eax, [ebp - 0x78]
mov ecx, 0x416038
push eax
call fcn.00402a20
mov esi, eax
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push 0xe
push str.NSudo.LogoText
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.004046a0
lea eax, [ebp - 0x60]
mov ecx, 0x416038
push eax
call fcn.00402a20
push esi
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00405330
push edi
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
call fcn.00405330
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x403717
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40370d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038fc
push edx
push ecx
call fcn.00409afe
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x403755
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40374b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038fc
push edx
push ecx
call fcn.00409afe
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4037a7
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40379d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038fc
push edx
push ecx
call fcn.00409afe
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x7c]
cmp edx, 8
jb 0x4037fc
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4037f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038fc
push edx
push ecx
call fcn.00409afe
add esp, 8
xor eax, eax
mov dword [ebp - 0x80], 0
push eax
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00408e00
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
jb 0x40383b
mov esi, dword [ebp - 0x2c]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [ebp - 0x14]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x403867
movzx esi, si
or esi, 0x80070000
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x403897
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40388d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403901
push edx
push ecx
call fcn.00409afe
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 8
jb 0x4038df
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4038d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403901
push edx
push ecx
call fcn.00409afe
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040975a
mov esp, ebp
pop ebp
ret
call fcn.0040a5e0
call fcn.0040a5e0
int3