Function at 0x402f30
Capabilities:
Get common file path
Get disk information
Hide graphical window
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x4170b4]
xor eax, ebp
mov dword [ebp - 0xc], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x28
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.00404d40
add esp, 0xc
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0x402ef0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], str.44A18B32_5364_4898_A246_53DB3E5EAA7A
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov word [ebp - 0x90], ax
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x8000000
push 0
movzx ecx, word [ebp - 0x90]
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x44]
call fcn.004039a0
mov eax, dword [ebp + 8]
mov dword [0x418500], eax
push 0x104
push 0x418508
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40302f
push str.Es_konnte_kein_Windows_Verzeichnis_gefunden_werden_
call fcn.00402210
add esp, 4
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0x9c]
jmp 0x403639
push 0x418508
call fcn.00403e40
add esp, 4
movsx ecx, byte [eax + 0x418507]
cmp ecx, 0x5c
je 0x40305a
push 0x41539c
push 0x418508
call fcn.00403d50
add esp, 8
push 0x418508
push 0x418820
call fcn.00403d40
add esp, 8
push 0x40eb84
push 0x418820
call fcn.00403d50
add esp, 8
push str.syskaEFAppRunning
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x41860c], eax
push 0x20
call fcn.00403840
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4030d8
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x8c]
je 0x4030d8
push 1
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0xa0], 0
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xa0]
jmp 0x403639
push 2
call fcn.00403840
add esp, 4
mov dword [ebp - 0x40], eax
push 1
call fcn.00403840
add esp, 4
mov dword [ebp - 4], eax
push 4
call fcn.00403840
add esp, 4
mov dword [ebp - 0x88], eax
push 8
call fcn.00403840
add esp, 4
mov dword [ebp - 0x24], eax
push 0x10
call fcn.00403840
add esp, 4
mov dword [ebp - 0x20], eax
push 0x40
call fcn.00403840
add esp, 4
mov dword [ebp - 0x48], eax
call fcn.004020e0
mov byte [ebp - 5], al
cmp dword [ebp - 0x40], 0
jne 0x403160
cmp dword [ebp - 4], 0
jne 0x403160
cmp dword [ebp - 0x88], 0
jne 0x403160
cmp dword [ebp - 0x24], 0
jne 0x403160
cmp dword [ebp - 0x20], 0
jne 0x403160
cmp dword [ebp - 0x48], 0
jne 0x403160
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x40318a
push str.Die_EURO_FIBU__EURO_KORE__EURO_ANBU__der_Report_Service__der_Registry_Editor__die_E_Bilanz_und_oder_das_Installationsprogramm_wird_noch_ausgef
call fcn.00402210
add esp, 4
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xa4]
jmp 0x403639
push str.ProgPfad
lea edx, [ebp - 0x3c]
push edx
call fcn.00403d40
add esp, 8
push 0x413178
lea eax, [ebp - 0x3c]
push eax
call fcn.00403d50
add esp, 8
push 0x418820
push 0x104
push 0x418718
push 0x415349
lea ecx, [ebp - 0x3c]
push ecx
push str.EFIBU
call fcn.004017cf
movsx edx, byte [0x418718]
test edx, edx
jne 0x4031fc
push 0x418820
push 0x104
push 0x418718
push 0x415349
push str.ProgPfad
push str.EFIBU
call fcn.004017cf
movsx eax, byte [0x418718]
test eax, eax
jne 0x40322d
push str.Es_konnte_keine_lauff
call fcn.00402210
add esp, 4
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xa8]
jmp 0x403639
push 0x418718
call fcn.00403e40
add esp, 4
movsx ecx, byte [eax + 0x418717]
cmp ecx, 0x5c
je 0x403258
push 0x41539c
push 0x418718
call fcn.00403d50
add esp, 8
push str.DbPfad
lea edx, [ebp - 0x3c]
push edx
call fcn.00403d40
add esp, 8
push 0x413178
lea eax, [ebp - 0x3c]
push eax
call fcn.00403d50
add esp, 8
push 0x418820
push 0x104
push 0x418610
push 0x415349
lea ecx, [ebp - 0x3c]
push ecx
push str.EFIBU
call fcn.004017cf
movsx edx, byte [0x418610]
test edx, edx
jne 0x4032ca
push 0x418820
push 0x104
push 0x418610
push 0x415349
push str.DbPfad
push str.EFIBU
call fcn.004017cf
movsx eax, byte [0x418610]
test eax, eax
jne 0x4032fb
push str.Es_konnte_keine_lauff
call fcn.00402210
add esp, 4
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xac]
jmp 0x403639
push 0x418610
call fcn.00403e40
add esp, 4
movsx ecx, byte [eax + 0x41860f]
cmp ecx, 0x5c
je 0x403326
push 0x41539c
push 0x418610
call fcn.00403d50
add esp, 8
push 0
lea edx, [ebp - 0x50]
push edx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00403c40
add esp, 4
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x28]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x418718
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00403980
add esp, 8
test eax, eax
jne 0x40341e
push 0x418718
call fcn.00403e40
add esp, 4
mov edx, dword [ebp - 0x4c]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00403c40
add esp, 4
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x94], edx
push 0x418718
mov eax, dword [ebp - 0x94]
push eax
call fcn.00403d40
add esp, 8
push 0x40ea60
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00403d50
add esp, 8
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x94]
push eax
call fcn.00403d50
add esp, 8
mov ecx, dword [ebp - 0x94]
push ecx
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00403c1a
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00403c1a
add esp, 4
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x418718
call fcn.00404ce8
add esp, 0x14
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403e40
add esp, 4
movsx edx, byte [ebp + eax - 0x15]
cmp edx, 0x5c
je 0x403474
push 0x41539c
lea eax, [ebp - 0x14]
push eax
call fcn.00403d50
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 4
jne 0x4034b6
push 0x124
push 0x40e594
push str.Die_Fibu_wird_an_diesem_Platz_deinstalliert._Das_Programmverzeichnis_und_das_Datenbankverzeichnis_bleiben_davon_unber
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4034ae
mov edx, 1
mov word [ebp - 0x80], dx
jmp 0x4034b4
xor eax, eax
mov word [ebp - 0x80], ax
jmp 0x403511
cmp dword [ebp - 0x7c], 1
jbe 0x4034eb
push 0x124
push 0x40e594
push str.Die_Fibu_sowie_alle_Mandanten_der_Fibu_werden_vollst
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4034e3
mov ecx, 3
mov word [ebp - 0x80], cx
jmp 0x4034e9
xor edx, edx
mov word [ebp - 0x80], dx
jmp 0x403511
push str.Es_konnten_keine_Daten_des_Installationslaufwerkes_gefunden_werden_
call fcn.00402210
add esp, 4
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xc0]
jmp 0x403639
movsx eax, word [ebp - 0x80]
test eax, eax
jne 0x403536
mov dword [ebp - 0xc4], 1
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xc4]
jmp 0x403639
push 0
push str.BTI_MKDE
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40359c
push 0x21
push 0x40e594
push str.Die_Datenbank_der_Fibu_ist_noch_aktiv__W32MKDE.EXE_._F
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 1
je 0x40358c
mov dword [ebp - 0xc8], 0
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xc8]
jmp 0x403639
push 0
push 0
push 0x12
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x84], 1
movsx edx, word [ebp - 0x80]
cmp edx, 3
jne 0x4035ba
call fcn.00402d10
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x4035d7
movsx eax, word [ebp - 0x80]
and eax, 1
je 0x4035d7
call fcn.00402910
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x403603
push str.Die_Fibu_konnte_nicht_vollst
call fcn.00402210
add esp, 4
mov dword [ebp - 0xcc], eax
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xcc]
jmp 0x403639
push 0x24
push 0x40e594
push str.Um_die_Deinstallation_abzuschlie
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403621
call fcn.00402ed0
mov dword [ebp - 0xd0], 1
lea ecx, [ebp - 0x44]
call fcn.004039c0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00403c0b
mov esp, ebp
pop ebp
ret 0x10