Function at 0x403593
Capabilities:
Clear file content
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43fce8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x24
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004175e0
mov esi, 0x9c
push esi
lea eax, [ebp - 0xf0]
push 0
push eax
call fcn.004175e0
add esp, 0x18
lea eax, [ebp - 0xf0]
push eax
mov dword [ebp - 0xf0], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4035ef
inc eax
jmp 0x40399b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x430930
push 0x430920
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x403618
lea ecx, [ebp - 0x118]
push ecx
call eax
jmp 0x403625
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp dword [ebp - 0xe0], 2
jne 0x40398d
cmp dword [ebp - 0xec], 4
jbe 0x40398d
push 0x430914
mov esi, 0x100
push esi
push edi
call fcn.004034b4
cmp dword [ebp - 0xec], 6
jne case.0x4036e8.5
cmp dword [ebp - 0xe8], 0
jne 0x40367f
cmp byte [ebp - 0x56], 1
jne 0x403673
push 0x430904
jmp 0x403678
push 0x4308ec
push esi
push edi
call fcn.004034e9
cmp dword [ebp - 0xe8], 1
jne 0x4036a1
cmp byte [ebp - 0x56], 1
jne 0x403695
push 0x4308e0
jmp 0x40369a
push 0x4308c8
push esi
push edi
call fcn.004034e9
push 0x4308b8
push 0x430920
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea ecx, [ebp - 0xf4]
push ecx
push 0
push 0
push dword [ebp - 0xe8]
push dword [ebp - 0xec]
call eax
mov eax, dword [ebp - 0xf4]
cmp eax, 0x19
ja 0x40375f
je 0x403758
dec eax
cmp eax, 0x11
ja case.0x4036e8.5
jmp dword [eax*4 + 0x4039ab]
push 0x4308a4
jmp 0x403769
push 0x43088c
jmp 0x403769
push 0x430878
jmp 0x403769
push 0x430864
jmp 0x403769
push 0x430850
jmp 0x403769
push 0x430840
jmp 0x403769
push 0x430828
jmp 0x403769
push 0x430814
jmp 0x403769
push 0x4307ec
jmp 0x403769
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x403769
push 0x430794
jmp 0x403769
push 0x43077c
jmp 0x403769
push 0x430768
jmp 0x403769
push 0x430740
jmp 0x403769
push 0x43072c
jmp 0x403769
push 0x430704
jmp 0x403769
cmp eax, 0x30
jne case.0x4036e8.5
push 0x4306f4
push esi
push edi
call fcn.004034e9
cmp dword [ebp - 0xec], 5
jne 0x403909
cmp dword [ebp - 0xe8], 2
jne 0x403887
push 0x59
call dword [sym.imp.USER32.dll_MapWindowPoints]
test eax, eax
je 0x40379d
push str.Windows_Home_Server
jmp 0x4037d9
test dword [ebp - 0x58], 0x2000
je 0x4037ad
push 0x4306bc
jmp 0x4037d9
test dword [ebp - 0x58], 0x8000
je 0x4037bd
push 0x4306a8
jmp 0x4037d9
cmp byte [ebp - 0x56], 1
jne 0x4037d4
cmp word [ebp - 0x118], 9
jne 0x4037d4
push 0x430684
jmp 0x4037d9
push str.Datacenter_Edition_for_Itanium_based_Systems
push esi
push edi
call fcn.004034e9
cmp byte [ebp - 0x56], 1
je 0x40387a
cmp word [ebp - 0x118], 6
jne 0x40380e
test byte [ebp - 0x58], 0x80
je 0x403801
push str.Enterprise_x64_Edition
jmp 0x403873
test byte [ebp - 0x58], 2
je 0x40387a
push 0x430794
jmp 0x403873
cmp word [ebp - 0x118], 9
jne 0x403839
test byte [ebp - 0x58], 0x80
je 0x403825
push str.Standard_x64_Edition
jmp 0x403873
test byte [ebp - 0x58], 2
je 0x403832
push str.Compute_Cluster_Edition
jmp 0x403873
push str.Windows_XP
jmp 0x403873
mov eax, dword [ebp - 0x58]
test eax, 0x4000
je 0x40384a
push 0x4305dc
jmp 0x403873
test al, al
jns 0x403855
push 0x430814
jmp 0x403873
test al, 2
je 0x403860
push 0x430864
jmp 0x403873
test eax, 0x400
je 0x40386e
push 0x4305d0
jmp 0x403873
push 0x430768
push esi
push edi
call fcn.004034e9
cmp dword [ebp - 0xec], 5
jne 0x403909
cmp dword [ebp - 0xe8], 1
jne 0x4038c1
push 0x4305c4
push esi
push edi
call fcn.004034e9
test dword [ebp - 0x58], 0x200
je 0x4038ac
push 0x4305b4
jmp 0x4038b1
push 0x4306f4
push esi
push edi
call fcn.004034e9
cmp dword [ebp - 0xec], 5
jne 0x403909
cmp dword [ebp - 0xe8], 0
jne 0x403909
push 0x4305a4
push esi
push edi
call fcn.004034e9
cmp byte [ebp - 0x56], 1
jne 0x4038e3
push 0x4306f4
jmp 0x403902
test byte [ebp - 0x58], 0x80
je 0x4038f0
push str.__64_bit
jmp 0x403902
test byte [ebp - 0x58], 2
je 0x4038fd
push 0x430580
jmp 0x403902
push 0x430578
push esi
push edi
call fcn.004034e9
lea eax, [ebp - 0xdc]
push eax
call fcn.004164c0
pop ecx
test eax, eax
je 0x403934
push 0x42f8e8
push esi
push edi
call fcn.004034e9
lea eax, [ebp - 0xdc]
push eax
push esi
push edi
call fcn.004034e9
push dword [ebp - 0xe4]
lea eax, [ebp - 0x54]
push 0x43056c
push 0x50
push eax
call fcn.0040353c
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
push esi
push edi
call fcn.004034e9
cmp dword [ebp - 0xec], 6
jb 0x403988
cmp word [ebp - 0x118], 9
jne 0x403972
push 0x430560
jmp 0x403981
cmp word [ebp - 0x118], 0
jne 0x403988
push 0x430554
push esi
push edi
call fcn.004034e9
xor eax, eax
inc eax
jmp 0x40399a
push 0x43051c
call fcn.00417e69
pop ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416037
leave
ret