Function at 0x4031a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410579
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x416008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x4165bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4165b4], 8
mov edi, 0x4165a0
jb 0x4031f0
mov edi, dword [0x4165a0]
push 0x4165bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 - 0xd8]
mov ecx, 0x416038
push eax
call fcn.00402a20
mov esi, eax
push ebx
sub esp, 0x18
mov dword [ebp - 4], 0
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 - 0xc0]
mov ecx, 0x416038
push eax
call fcn.00402a20
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00404d70
add esp, 4
push esi
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00405330
push 0x4127a0
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
call fcn.00404d70
push 0x4127a0
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00404d70
push edi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00404d70
add esp, 0xc
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x403310
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403306
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035bd
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 0x403365
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40335b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035bd
push edx
push ecx
call fcn.00409afe
add esp, 8
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x4033ba
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4033b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035bd
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], 0xa
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x403412
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403408
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035bd
push edx
push ecx
call fcn.00409afe
add esp, 8
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x403473
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403469
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035bd
push edx
push ecx
call fcn.00409afe
add esp, 8
xor eax, eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xc4]
cmp edx, 8
jb 0x4034d4
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4034ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035bd
push edx
push ecx
call fcn.00409afe
add esp, 8
xor eax, eax
mov dword [ebp - 0xc8], 0
lea edx, [ebp - 0x44]
mov dword [ebp - 0xc4], 7
lea ecx, [ebp - 0x2c]
mov word [ebp - 0xd8], ax
call fcn.00408e00
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
jb 0x403512
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]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x403559
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40354f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035c2
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 0x4035a1
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403597
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035c2
push edx
push ecx
call fcn.00409afe
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040975a
mov esp, ebp
pop ebp
ret
call fcn.0040a5e0
call fcn.0040a5e0
int3