Function at 0x4053f0
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x41b0ac]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40543d
jmp 0x405c41
cmp dword [ebp - 0x21c], 2
jge 0x40544b
jmp 0x405c41
xor ecx, ecx
mov word [ebp - 0x630], cx
push 0x206
push 0
lea edx, [ebp - 0x62e]
push edx
call fcn.00407a70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x630]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
ja 0x405487
jmp 0x405c41
push 0x5c
lea ecx, [ebp - 0x630]
push ecx
call fcn.00405c70
add esp, 8
mov dword [ebp - 0x8a4], eax
cmp dword [ebp - 0x8a4], 0
jne 0x4054ac
jmp 0x405c41
xor edx, edx
mov eax, dword [ebp - 0x8a4]
mov word [eax + 2], dx
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00407a70
add esp, 0xc
push 0xffffffffffffffff
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00407020
add esp, 0xc
push 0xffffffffffffffff
push str.run_temp.ini
lea edx, [ebp - 0x218]
push edx
call fcn.00407040
add esp, 0xc
xor eax, eax
mov word [ebp - 0x870], ax
push 0x206
push 0
lea ecx, [ebp - 0x86e]
push ecx
call fcn.00407a70
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x870]
push eax
push 0
push str.date
push str.Build
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov word [ebp - 0x428], cx
push 0x206
push 0
lea edx, [ebp - 0x426]
push edx
call fcn.00407a70
add esp, 0xc
push 0xffffffffffffffff
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x428]
push ecx
call fcn.00407020
add esp, 0xc
push 0xffffffffffffffff
push str.InfoForSetup.exe
lea edx, [ebp - 0x428]
push edx
call fcn.00407040
add esp, 0xc
push 0x417b10
lea ecx, [ebp - 0x668]
call fcn.004025e0
mov dword [ebp - 0x8a8], 1
jmp 0x4055c1
mov eax, dword [ebp - 0x8a8]
add eax, 1
mov dword [ebp - 0x8a8], eax
mov ecx, dword [ebp - 0x8a8]
cmp ecx, dword [ebp - 0x21c]
jge 0x405769
mov edx, dword [ebp - 0x8a8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4]
push ecx
lea ecx, [ebp - 0x8c4]
call fcn.004025e0
lea ecx, [ebp - 0x8c4]
call fcn.00405d40
movzx edx, al
test edx, edx
je 0x40560a
lea ecx, [ebp - 0x8c4]
call fcn.00402660
jmp 0x4055b2
lea eax, [ebp - 0x8d4]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.00405ce0
mov ecx, eax
call fcn.00405eb0
movzx ecx, word [eax]
cmp ecx, 0x7b
jne 0x4056dd
lea edx, [ebp - 0x8dc]
push edx
lea ecx, [ebp - 0x8c4]
call fcn.00405d10
mov ecx, eax
call fcn.00405f50
movzx eax, word [eax]
cmp eax, 0x7d
jne 0x4056dd
push 1
lea ecx, [ebp - 0x8f4]
push ecx
lea ecx, [ebp - 0x8c4]
call fcn.004028d0
push eax
lea edx, [ebp - 0x8ec]
push edx
lea eax, [ebp - 0x8e4]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.00405ce0
mov ecx, eax
call fcn.00405ed0
mov ecx, eax
call fcn.00405f10
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push 1
lea eax, [ebp - 0x904]
push eax
lea ecx, [ebp - 0x8fc]
push ecx
lea ecx, [ebp - 0x8c4]
call fcn.00405ce0
mov ecx, eax
call fcn.00405ed0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x668]
call fcn.00407060
push 0x417b14
lea ecx, [ebp - 0x668]
call fcn.004026a0
jmp 0x405759
lea ecx, [ebp - 0x90c]
push ecx
lea ecx, [ebp - 0x8c4]
call fcn.00405ce0
mov ecx, eax
call fcn.00405eb0
movzx edx, word [eax]
cmp edx, 0x2f
jne 0x405759
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x92c]
call fcn.004025e0
lea ecx, [ebp - 0x8c4]
push ecx
lea edx, [ebp - 0x92c]
push edx
call fcn.00404f80
add esp, 8
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x90d], al
lea ecx, [ebp - 0x92c]
call fcn.00402660
movzx ecx, byte [ebp - 0x90d]
test ecx, ecx
je 0x405759
lea ecx, [ebp - 0x8c4]
call fcn.00402660
jmp 0x405769
lea ecx, [ebp - 0x8c4]
call fcn.00402660
jmp 0x4055b2
push 0x417b18
lea ecx, [ebp - 0x668]
call fcn.004026a0
lea edx, [ebp - 0x948]
push edx
call fcn.00401000
add esp, 4
push eax
lea ecx, [ebp - 0x668]
call fcn.00405c90
lea ecx, [ebp - 0x948]
call fcn.00402660
push str.___Timezone_:_
lea ecx, [ebp - 0x668]
call fcn.004026a0
lea eax, [ebp - 0x964]
push eax
call fcn.00401b00
add esp, 4
push eax
lea ecx, [ebp - 0x668]
call fcn.00405c90
lea ecx, [ebp - 0x964]
call fcn.00402660
push str.___OS_:_
lea ecx, [ebp - 0x668]
call fcn.004026a0
lea ecx, [ebp - 0x980]
push ecx
call fcn.004016d0
add esp, 4
push eax
lea ecx, [ebp - 0x668]
call fcn.00405c90
lea ecx, [ebp - 0x980]
call fcn.00402660
push str.___BuildNumber_:_
lea ecx, [ebp - 0x668]
call fcn.004026a0
lea edx, [ebp - 0x870]
push edx
lea ecx, [ebp - 0x668]
call fcn.004026a0
push 0x417b88
lea ecx, [ebp - 0x668]
call fcn.004026a0
push 0x417b8c
lea ecx, [ebp - 0x668]
call fcn.004026a0
lea eax, [ebp - 0x668]
push eax
call fcn.004053a0
add esp, 4
push 0x417b90
lea ecx, [ebp - 0x64c]
call fcn.004025e0
lea ecx, [ebp - 0x668]
push ecx
lea ecx, [ebp - 0x64c]
call fcn.00405c90
push 0x417c1c
lea ecx, [ebp - 0x64c]
call fcn.004026a0
lea edx, [ebp - 0x428]
push edx
lea ecx, [ebp - 0x9a0]
call fcn.004025e0
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x9a0]
push ecx
call fcn.00404f80
add esp, 8
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x981], dl
lea ecx, [ebp - 0x9a0]
call fcn.00402660
movzx eax, byte [ebp - 0x981]
test eax, eax
je 0x4058f7
lea ecx, [ebp - 0x64c]
call fcn.00402660
lea ecx, [ebp - 0x668]
call fcn.00402660
jmp 0x405c41
lea ecx, [ebp - 0x888]
call fcn.00405f80
lea ecx, [ebp - 0x888]
push ecx
call fcn.00401e40
add esp, 4
lea ecx, [ebp - 0x888]
call fcn.00406090
movzx edx, al
test edx, edx
jne 0x405a7e
push 0x417c20
lea ecx, [ebp - 0x64c]
call fcn.00402680
push str._Diskinfo_:
lea ecx, [ebp - 0x668]
call fcn.00402680
mov dword [ebp - 0x8c8], 0
jmp 0x405962
mov eax, dword [ebp - 0x8c8]
add eax, 1
mov dword [ebp - 0x8c8], eax
lea ecx, [ebp - 0x888]
call fcn.00402b30
cmp dword [ebp - 0x8c8], eax
jae 0x4059c9
cmp dword [ebp - 0x8c8], 0
je 0x40598e
push 0x417cc0
lea ecx, [ebp - 0x668]
call fcn.004026a0
mov ecx, dword [ebp - 0x8c8]
push ecx
lea ecx, [ebp - 0x888]
call fcn.00406050
push eax
lea edx, [ebp - 0x9bc]
push edx
call fcn.00405150
add esp, 8
push eax
lea ecx, [ebp - 0x668]
call fcn.00405c90
lea ecx, [ebp - 0x9bc]
call fcn.00402660
jmp 0x405953
push 0x417cc4
lea ecx, [ebp - 0x668]
call fcn.004026a0
lea eax, [ebp - 0x668]
push eax
call fcn.004053a0
add esp, 4
lea ecx, [ebp - 0x668]
push ecx
lea ecx, [ebp - 0x64c]
call fcn.00405c90
push 0x417ccc
lea ecx, [ebp - 0x64c]
call fcn.004026a0
lea edx, [ebp - 0x428]
push edx
lea ecx, [ebp - 0x9dc]
call fcn.004025e0
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x9dc]
push ecx
call fcn.00404f80
add esp, 8
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x9bd], dl
lea ecx, [ebp - 0x9dc]
call fcn.00402660
movzx eax, byte [ebp - 0x9bd]
test eax, eax
je 0x405a7e
lea ecx, [ebp - 0x888]
call fcn.00405ff0
lea ecx, [ebp - 0x64c]
call fcn.00402660
lea ecx, [ebp - 0x668]
call fcn.00402660
jmp 0x405c41
lea ecx, [ebp - 0x8a0]
call fcn.00405f80
lea ecx, [ebp - 0x8a0]
push ecx
call fcn.004022d0
add esp, 4
lea ecx, [ebp - 0x8a0]
call fcn.00406090
movzx edx, al
test edx, edx
jne 0x405c0d
push 0x417cd0
lea ecx, [ebp - 0x64c]
call fcn.00402680
push str._Partitioninfo_:
lea ecx, [ebp - 0x668]
call fcn.00402680
mov dword [ebp - 0x8cc], 0
jmp 0x405ae9
mov eax, dword [ebp - 0x8cc]
add eax, 1
mov dword [ebp - 0x8cc], eax
lea ecx, [ebp - 0x8a0]
call fcn.00402b30
cmp dword [ebp - 0x8cc], eax
jae 0x405b50
cmp dword [ebp - 0x8cc], 0
je 0x405b15
push 0x417d90
lea ecx, [ebp - 0x668]
call fcn.004026a0
mov ecx, dword [ebp - 0x8cc]
push ecx
lea ecx, [ebp - 0x8a0]
call fcn.00406050
push eax
lea edx, [ebp - 0x9f8]
push edx
call fcn.00405280
add esp, 8
push eax
lea ecx, [ebp - 0x668]
call fcn.00405c90
lea ecx, [ebp - 0x9f8]
call fcn.00402660
jmp 0x405ada
push 0x417d94
lea ecx, [ebp - 0x668]
call fcn.004026a0
lea eax, [ebp - 0x668]
push eax
call fcn.004053a0
add esp, 4
lea ecx, [ebp - 0x668]
push ecx
lea ecx, [ebp - 0x64c]
call fcn.00405c90
push 0x417d9c
lea ecx, [ebp - 0x64c]
call fcn.004026a0
lea edx, [ebp - 0x428]
push edx
lea ecx, [ebp - 0xa18]
call fcn.004025e0
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0xa18]
push ecx
call fcn.00404f80
add esp, 8
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x9f9], dl
lea ecx, [ebp - 0xa18]
call fcn.00402660
movzx eax, byte [ebp - 0x9f9]
test eax, eax
je 0x405c0d
lea ecx, [ebp - 0x8a0]
call fcn.00405ff0
lea ecx, [ebp - 0x888]
call fcn.00405ff0
lea ecx, [ebp - 0x64c]
call fcn.00402660
lea ecx, [ebp - 0x668]
call fcn.00402660
jmp 0x405c41
lea ecx, [ebp - 0x8a0]
call fcn.00405ff0
lea ecx, [ebp - 0x888]
call fcn.00405ff0
lea ecx, [ebp - 0x64c]
call fcn.00402660
lea ecx, [ebp - 0x668]
call fcn.00402660
xor ecx, ecx
jne 0x405411
cmp dword [ebp - 8], 0
je 0x405c58
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407a5c
mov esp, ebp
pop ebp
ret 0x10