Function at 0x40af97
Capabilities:
Check os version
Get common file path
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 2
mov esi, ecx
pop ebx
sub eax, ebx
je 0x40c289
sub eax, 0xe
je 0x40c278
mov edi, pe_nt_image_headers32
sub eax, edi
je 0x40b73b
dec eax
jne 0x40c2a3
mov ecx, dword [ebp + 0x10]
mov eax, 0x3fd
movzx edx, cx
cmp edx, eax
jg 0x40b59e
je 0x40b525
dec edx
je 0x40b117
dec edx
je 0x40b0e6
dec edx
je 0x40b0d7
sub edx, 0x3ee
je 0x40b0c8
sub edx, 3
jne 0x40c2a3
shr ecx, 0x10
cmp cx, 0x300
jne 0x40c2a3
lea eax, [ebp - 0x1a8]
push 0x104
push eax
push 0x3f4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x40c2a3
push str.TARGET_DIR
lea ecx, [ebp - 0x84]
call fcn.0040168c
lea eax, [ebp - 0x84]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
lea ecx, [ebp - 0x84]
mov edi, eax
call fcn.0040178c
lea eax, [ebp - 0x1a8]
mov ecx, edi
push eax
call fcn.00407845
mov ecx, edi
call fcn.0040917d
test eax, eax
je 0x40b0b9
mov ecx, edi
call fcn.0040917d
mov ebx, eax
dec ebx
cmp dword [edi], 0
jne 0x40b09b
mov eax, edi
jmp 0x40b0a8
mov ecx, edi
call fcn.00408ccd
mov eax, dword [edi]
lea eax, [ebx + eax + 0xd]
cmp byte [eax], 0x5c
je 0x40b0b9
push 0x42935c
mov ecx, edi
call fcn.0040ac91
push dword [ebp + 8]
mov ecx, esi
call fcn.0040d337
jmp 0x40c2a3
push dword [ebp + 8]
mov ecx, esi
call fcn.0040d43e
jmp 0x40c2a3
mov dword [esi + 0xf8], 1
jmp 0x40c2a3
push esi
push 0x40d6e3
push dword [ebp + 8]
push str.IDD_EXIT_SETUP
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x40c2a3
mov dword [esi + 0xf8], 4
jmp 0x40c2a3
mov eax, dword [esi + 0xf4]
cmp eax, 3
je 0x40b474
cmp eax, 4
je 0x40b21e
cmp eax, 6
jle 0x40b213
cmp eax, 0xb
jle 0x40b164
cmp eax, 0xd
jne 0x40b213
push 0x40e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
setne al
mov byte [esi + 0x100], al
jmp 0x40b213
push 0x40d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x40b213
mov edi, dword [esi + 0xf4]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
sub edi, 7
push dword [ebp + 8]
call ebx
mov eax, dword [esi + 0x98]
mov edi, dword [eax + edi*4]
test edi, edi
mov dword [ebp + 0xc], edi
je 0x40b1a3
inc dword [edi + 4]
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00409c36
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40b1c0
lea eax, [ebp + 0xc]
lea ecx, [ebp + 0xc]
jmp 0x40b1c5
add eax, 0xd
mov ecx, eax
push 0
push eax
push ecx
push 0
call fcn.00423a66
add esp, 0x10
mov edi, eax
push 1
mov ecx, esi
push dword [ebp + 8]
call fcn.00408ec9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40b201
cmp dword [ebp + 0x10], 0x103
je 0x40b1d5
push 1
push dword [ebp + 8]
call ebx
lea ecx, [ebp + 0xc]
call fcn.0040178c
push 2
pop ebx
mov dword [esi + 0xf8], ebx
jmp 0x40c2a3
lea eax, [ebp + 0xf]
mov ecx, esi
push eax
lea eax, [ebp - 4]
fldz
push eax
mov byte [ebp + 0xf], 0x63
fstp dword [ebp - 4]
call fcn.0040c3c2
test al, al
je 0x40b330
fld dword [ebp - 4]
fcomp dword [esi + 0xec]
fnstsw ax
sahf
jae 0x40b330
lea edi, [esi + 0xd4]
push 0x36
mov ecx, edi
call fcn.00420040
test al, al
jne 0x40b2ce
push 0x35
mov ecx, edi
call fcn.0041ff60
mov ecx, dword [eax]
mov ebx, eax
test ecx, ecx
je 0x40b277
lea ebx, [ecx + 0xd]
push 0x36
mov ecx, edi
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b289
lea eax, [ecx + 0xd]
fld dword [esi + 0xec]
push ecx
push ecx
movsx ecx, byte [ebp + 0xf]
fstp qword [esp]
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00407807
mov ecx, dword [eax]
add esp, 0x14
test ecx, ecx
je 0x40b2b2
lea eax, [ecx + 0xd]
push 4
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x88]
mov edi, eax
call fcn.0040178c
jmp 0x40b327
push 0x36
mov ecx, edi
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b2e0
lea eax, [ecx + 0xd]
fld dword [esi + 0xec]
push ecx
push ecx
movsx ecx, byte [ebp + 0xf]
fstp qword [esp]
push ecx
push eax
lea eax, [ebp - 0x9a8]
push eax
call fcn.004152dc
add esp, 0x14
mov ecx, edi
push 0x35
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b312
lea eax, [ecx + 0xd]
push 4
push eax
lea eax, [ebp - 0x9a8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
cmp edi, 6
jne 0x40c2a3
push str.TARGET_DIR
lea ecx, [ebp - 0x64]
call fcn.0040168c
lea eax, [ebp - 0x64]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
lea ecx, [ebp - 0x64]
mov edi, eax
call fcn.0040178c
mov eax, dword [edi]
test eax, eax
jne 0x40b35d
mov eax, edi
jmp 0x40b360
add eax, 0xd
push eax
mov ecx, esi
call fcn.00408bc3
lea eax, [ebp - 0x1a8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [edi]
test eax, eax
jne 0x40b384
mov eax, edi
jmp 0x40b387
add eax, 0xd
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call ebx
test eax, eax
lea eax, [ebp - 0x1a8]
push eax
setne byte [ebp + 0x13]
call ebx
cmp byte [ebp + 0x13], 0
jne 0x40b516
add esi, 0xd4
push 0x33
mov ecx, esi
call fcn.00420040
test al, al
jne 0x40b412
mov eax, dword [edi]
test eax, eax
je 0x40b3c5
lea edi, [eax + 0xd]
push 0x33
mov ecx, esi
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b3d7
lea eax, [ecx + 0xd]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00407807
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
je 0x40b3f1
lea eax, [ecx + 0xd]
push 0
push 0x42de54
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x90]
call fcn.0040178c
jmp 0x40c2a3
mov edx, edi
lea ecx, [ebp - 0xa0]
call fcn.0040adfa
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
je 0x40b42a
lea edi, [ecx + 0xd]
push 0x33
mov ecx, esi
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b43c
lea eax, [ecx + 0xd]
push edi
push eax
lea eax, [ebp - 0x9a8]
push eax
call fcn.004152dc
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.0040178c
push 0
lea eax, [ebp - 0x9a8]
push 0x42de50
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40c2a3
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp + 0xc], 0x4265f0
mov eax, dword [ebp + 0xc]
push 0
push dword [eax]
push dword [ebp + 8]
call edi
push eax
call ebx
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0xc], 4
cmp eax, 0x4265e8
jne 0x40b487
push dword [ebp + 8]
push 0x40d60f
push dword [ebp + 8]
push str.IDD_SCANNING
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.0040c4f8
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040c6cc
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp + 0xc], 0x4265f0
mov eax, dword [ebp + 0xc]
push 1
push dword [eax]
push dword [ebp + 8]
call edi
push eax
call ebx
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0xc], 4
cmp eax, 0x4265e8
jne 0x40b4f9
mov dword [esi + 0xf8], 2
jmp 0x40c2a3
shr ecx, 0x10
dec ecx
jne 0x40c2a3
push 0
push 0
push 0x147
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.LANGUAGE
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.0040168c
mov eax, dword [esi + 4]
lea ecx, [esi + 0x30]
lea edi, [eax + edi*8]
lea eax, [ebp - 0x48]
push eax
call fcn.0040f10f
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x40b575
inc dword [eax + 4]
mov edi, dword [edi]
mov ecx, ebx
call fcn.0040178c
lea ecx, [ebp - 0x48]
mov dword [ebx], edi
call fcn.0040178c
mov ecx, esi
call fcn.0040d630
push dword [ebp + 8]
mov ecx, esi
call fcn.0040c644
jmp 0x40c2a3
mov eax, 0x400
cmp edx, eax
je 0x40b710
cmp edx, 0x401
je 0x40b6f7
cmp edx, 0x402
je 0x40b6f3
add eax, 0xb
cmp edx, eax
je 0x40b6d9
cmp edx, 0x415
jle 0x40c2a3
cmp edx, 0x41d
jg 0x40c2a3
shr ecx, 0x10
test cx, cx
jne 0x40c2a3
and dword [esi + 0xfc], 0
mov eax, dword [esi + 0xfc]
cmp dword [eax*4 + 0x4264a0], edx
je 0x40b614
inc eax
cmp eax, 8
mov dword [esi + 0xfc], eax
jb 0x40b5f9
push str.SETUP_TYPE
lea ecx, [ebp - 0x6c]
call fcn.0040168c
push dword [esi + 0xfc]
lea eax, [ebp - 0x98]
push 0x42956c
push eax
call fcn.00407807
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x6c]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x40b654
inc dword [eax + 4]
mov edi, dword [edi]
mov ecx, ebx
call fcn.0040178c
lea ecx, [ebp - 0x98]
mov dword [ebx], edi
call fcn.0040178c
lea ecx, [ebp - 0x6c]
call fcn.0040178c
push 0x409
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [esi + 0xfc]
add esi, 0xd4
add edi, 0x96
mov ecx, esi
push edi
mov ebx, eax
call fcn.00420040
test al, al
push edi
mov ecx, esi
jne 0x40b6be
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b6b1
lea eax, [ecx + 0xd]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x40c2a3
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b6cc
lea eax, [ecx + 0xd]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x40c2a3
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
setne al
mov byte [esi + 0xf0], al
jmp 0x40c2a3
push 0
jmp 0x40b6f9
push 1
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40c2a3
shr ecx, 0x10
cmp cx, di
jne 0x40c2a3
push 0
push 0xffffffffffffffff
push 0xb1
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40c2a3
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0040c2f5
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, 4
jg 0x40bc57
cmp eax, 4
je 0x40bb8f
dec eax
je 0x40ba1c
dec eax
je 0x40b8b0
dec eax
jne 0x40c1bf
mov ecx, dword [esi + 0x54]
test ecx, ecx
jne 0x40b784
xor eax, eax
jmp 0x40b791
mov eax, dword [esi + 0x58]
sub eax, ecx
sar eax, 4
cmp eax, 8
jge 0x40b7b3
lea edi, [eax*4 + 0x4264a0]
push 0
push dword [edi]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
add edi, 4
cmp edi, 0x4264c0
jl 0x40b798
mov eax, dword [esi + 0xfc]
push 1
push dword [eax*4 + 0x4264a0]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push str.SETUP_TYPE
lea ecx, [ebp - 0x50]
call fcn.0040168c
push dword [esi + 0xfc]
lea eax, [ebp - 0xa4]
push 0x42956c
push eax
call fcn.00407807
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x50]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x40b80b
inc dword [eax + 4]
mov edi, dword [edi]
mov ecx, ebx
call fcn.0040178c
lea ecx, [ebp - 0xa4]
mov dword [ebx], edi
call fcn.0040178c
lea ecx, [ebp - 0x50]
call fcn.0040178c
push 0x409
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [esi + 0xfc]
lea ebx, [esi + 0xd4]
add edi, 0x96
mov ecx, ebx
push edi
mov dword [ebp + 0xc], eax
call fcn.00420040
test al, al
jne 0x40b878
push edi
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b869
lea eax, [ecx + 0xd]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x40c1bf
push 0xc
pop edx
push edx
pop ecx
call fcn.0040c2ac
push 1
push eax
push 0x30
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40b8a1
lea eax, [ecx + 0xd]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x40c1bf
push 0
push 1
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push str.LANGUAGE
lea ecx, [ebp - 0x74]
call fcn.0040168c
lea eax, [ebp - 0x74]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
je 0x40b8e4
lea eax, [ecx + 0xd]
push eax
lea eax, [ebp - 0x8c]
push str.license__s.txt
push eax
call fcn.00407807
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
je 0x40b902
lea eax, [ecx + 0xd]
push 0
push eax
call fcn.00413c78
lea ecx, [ebp - 0x8c]
mov ebx, eax
call fcn.0040178c
lea ecx, [ebp - 0x74]
call fcn.0040178c
test ebx, ebx
je 0x40bcc1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebp + 0xc], eax
add eax, 2
push eax
call fcn.00414e25
pop ecx
mov edi, eax
push dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
push 0x400
push dword [ebp + 8]
add eax, edi
and byte [eax], 0
and byte [eax + 1], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp word [edi], 0xfeff
mov dword [ebp + 0x10], eax
jne 0x40b9db
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x128], 2
je 0x40b9f5
push 0
push str.license_english.txt
call fcn.00413c78
mov ebx, eax
test ebx, ebx
je 0x40b9f5
push edi
call fcn.004148d0
mov eax, dword [ebx]
pop ecx
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebp + 0xc], eax
add eax, 2
push eax
call fcn.00414e25
pop ecx
mov edi, eax
push dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
and byte [edi + eax], 0
push edi
push 0
push 0xc
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call fcn.004148d0
pop ecx
jmp 0x40c1bf
push 0xc
pop edx
push edx
pop ecx
call fcn.0040c2ac
push 1
push eax
push 0x30
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi + 2]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x40b9e9
mov eax, dword [esi + 4]
test eax, eax
je 0x40ba78
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
cmp ecx, 1
ja 0x40baaa
test eax, eax
je 0x40ba78
mov ecx, dword [esi + 8]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 8
jne 0x40ba78
push str.LANGUAGE
lea ecx, [ebp - 0x58]
call fcn.0040168c
mov edi, dword [esi + 4]
lea eax, [ebp - 0x58]
push eax
lea ecx, [esi + 0x30]
call fcn.0040f10f
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x40ba68
inc dword [eax + 4]
mov edi, dword [edi]
mov ecx, ebx
call fcn.0040178c
mov dword [ebx], edi
lea ecx, [ebp - 0x58]
jmp 0x40baa0
push str.LANGUAGE
lea ecx, [ebp - 0x7c]
call fcn.0040168c
lea eax, [ebp - 0x7c]
push str.English
push eax
lea ecx, [esi + 0x30]
call fcn.0040f10f
mov ecx, eax
call fcn.00407845
lea ecx, [ebp - 0x7c]
call fcn.0040178c
jmp 0x40bcc1
push 0x3fd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, str.LANGUAGE
lea ecx, [ebp - 0x5c]
push edi
mov dword [ebp + 0x10], eax
xor ebx, ebx
call fcn.0040168c
lea eax, [ebp - 0x5c]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
call fcn.0040178c
and dword [ebp + 0xc], ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x40bb36
mov edx, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
sub edx, eax
sar edx, 3
cmp ecx, edx
jae 0x40bb36
lea eax, [eax + ecx*8 + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x40bb08
lea eax, [ecx + 0xd]
push eax
push 0
push 0x143
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x2c]
lea ecx, [eax + ecx*8]
call fcn.0040acf1
test al, al
je 0x40bb31
mov ebx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
jmp 0x40bae5
push 0
push ebx
push 0x14e
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
lea ecx, [ebp - 0x80]
call fcn.0040168c
mov eax, dword [esi + 4]
lea ecx, [esi + 0x30]
lea edi, [eax + ebx*8]
lea eax, [ebp - 0x80]
push eax
call fcn.0040f10f
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x40bb6d
inc dword [eax + 4]
mov edi, dword [edi]
mov ecx, ebx
call fcn.0040178c
lea ecx, [ebp - 0x80]
mov dword [ebx], edi
call fcn.0040178c
push dword [ebp + 8]
mov ecx, esi
call fcn.0040c644
jmp 0x40c1bf
push str.TARGET_DIR
lea ecx, [ebp - 0x40]
call fcn.0040168c
lea eax, [ebp - 0x40]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
je 0x40bbb1
lea eax, [ecx + 0xd]
push eax
push 0x3f4
push edi
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
call edi
lea ecx, [ebp - 0x40]
call fcn.0040178c
push 0x118
lea ecx, [esi + 0xd4]
call fcn.00420040
test al, al
je 0x40bbf9
push 0xc
pop edx
push edx
pop ecx
call fcn.0040c2ac
push 1
push eax
push 0x30
push 0x3f5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040d337
fld dword [esi + 0xec]
push ecx
push ecx
lea eax, [ebp - 0x94]
fstp qword [esp]
push str._.1f_MB
push eax
call fcn.00407807
mov ecx, dword [eax]
add esp, 0x10
test ecx, ecx
je 0x40bc2b
lea eax, [ecx + 0xd]
push eax
push 0x3f7
push dword [ebp + 8]
call edi
lea ecx, [ebp - 0x94]
call fcn.0040178c
xor eax, eax
cmp byte [esi + 0xf0], al
setne al
push eax
push 0x40b
push dword [ebp + 8]
jmp 0x40bc84
cmp eax, 5
je 0x40bcd9
cmp eax, 6
jle 0x40c1bf
cmp eax, 0xb
jle 0x40bca5
cmp eax, 0xd
jne 0x40c1bf
cmp byte [esi + 0x100], 0
je 0x40bc8f
push 1
push 0x40e
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x40c1bf
push 0
push 0x40e
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
jmp 0x40c1bf
mov ecx, dword [esi + 0x98]
add eax, 0xfffffff9
test ecx, ecx
je 0x40bcc1
mov edx, dword [esi + 0x9c]
sub edx, ecx
sar edx, 2
cmp eax, edx
jb 0x40bcd0
mov dword [esi + 0xf8], 2
jmp 0x40c1bf
push 1
push 0x40d
jmp 0x40bc83
lea eax, [ebp + 0xf]
mov ecx, esi
push eax
lea eax, [ebp - 0x30]
fldz
push eax
mov byte [ebp + 0xf], 0x43
fstp dword [ebp - 0x30]
call fcn.0040c3c2
lea ebx, [esi + 0xd4]
push 0x110
mov ecx, ebx
call fcn.00420040
test al, al
jne 0x40bf37
push str.TARGET_DIR
lea ecx, [ebp - 0x78]
call fcn.0040168c
push str.SOURCE_DIR
lea ecx, [ebp - 0x68]
call fcn.0040168c
push str.LANGUAGE
lea ecx, [ebp - 0x34]
call fcn.0040168c
push str.APP_NAME
lea ecx, [ebp - 0x60]
call fcn.0040168c
lea edi, [esi + 0x30]
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
jne 0x40bd58
mov dword [ebp - 4], eax
jmp 0x40bd5e
add ecx, 0xd
mov dword [ebp - 4], ecx
push 0x116
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40bd75
mov dword [ebp - 0xc], eax
jmp 0x40bd7b
add ecx, 0xd
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
jne 0x40bd91
mov dword [ebp - 8], eax
jmp 0x40bd97
add ecx, 0xd
mov dword [ebp - 8], ecx
push 0x115
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40bdae
mov dword [ebp - 0x1c], eax
jmp 0x40bdb4
add ecx, 0xd
mov dword [ebp - 0x1c], ecx
push 0x114
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40bdcb
mov dword [ebp - 0x28], eax
jmp 0x40bdd1
add ecx, 0xd
mov dword [ebp - 0x28], ecx
mov eax, dword [esi + 0xe0]
test eax, eax
jne 0x40bde0
and dword [ebp - 0x14], eax
jmp 0x40bdee
mov ecx, dword [esi + 0xe4]
sub ecx, eax
sar ecx, 4
mov dword [ebp - 0x14], ecx
push 0x113
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40be05
mov dword [ebp - 0x18], eax
jmp 0x40be0b
add ecx, 0xd
mov dword [ebp - 0x18], ecx
mov eax, dword [esi + 0xfc]
mov ecx, ebx
add eax, 0x64
push eax
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40be27
mov dword [ebp - 0x20], eax
jmp 0x40be2d
add ecx, 0xd
mov dword [ebp - 0x20], ecx
push 0x112
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40be44
mov dword [ebp - 0x24], eax
jmp 0x40be4a
add ecx, 0xd
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
jne 0x40be60
mov dword [ebp - 0x10], eax
jmp 0x40be66
add ecx, 0xd
mov dword [ebp - 0x10], ecx
push 0x111
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
mov ebx, eax
test ecx, ecx
je 0x40be7d
lea ebx, [ecx + 0xd]
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.0040f10f
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
je 0x40be93
lea edi, [ecx + 0xd]
push 0x110
lea ecx, [esi + 0xd4]
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40beac
lea eax, [ecx + 0xd]
push dword [ebp - 4]
fld dword [ebp - 0x30]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x1c]
push ecx
push ecx
fstp qword [esp]
push dword [ebp - 0x28]
fld dword [esi + 0xec]
push ecx
push ecx
fstp qword [esp]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push ebx
push edi
push eax
lea eax, [ebp + 0x10]
push str.____s__s_r_n___________________________r_n_s:__s_r_n_s:__s_r_n_s:__i___.1f_MB__r_n_s:__.1f_MB_r_n_s:__s_r_n_s:__s_r_n
push eax
call fcn.00407807
add esp, 0x4c
lea ecx, [ebp - 0x60]
call fcn.0040178c
lea ecx, [ebp - 0x34]
call fcn.0040178c
lea ecx, [ebp - 0x68]
call fcn.0040178c
lea ecx, [ebp - 0x78]
call fcn.0040178c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40bf1d
lea eax, [ebp + 0x10]
jmp 0x40bf20
add eax, 0xd
push eax
push 0x40a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp + 0x10]
jmp 0x40c1ba
push 0xc
pop edx
push edx
pop ecx
call fcn.0040c2ac
push 1
push eax
push 0x30
push 0x40a
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push str.APP_NAME
lea ecx, [ebp - 0x70]
call fcn.0040168c
lea edi, [esi + 0x30]
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
call fcn.0040f10f
mov edx, eax
lea ecx, [ebp - 4]
call fcn.0040adfa
lea ecx, [ebp - 0x70]
call fcn.0040178c
push str.LANGUAGE
lea ecx, [ebp - 0x38]
call fcn.0040168c
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0040f10f
mov edx, eax
lea ecx, [ebp - 0xc]
call fcn.0040adfa
lea ecx, [ebp - 0x38]
call fcn.0040178c
push str.SOURCE_DIR
lea ecx, [ebp - 0x3c]
call fcn.0040168c
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.0040f10f
mov edx, eax
lea ecx, [ebp - 8]
call fcn.0040adfa
lea ecx, [ebp - 0x3c]
call fcn.0040178c
push str.TARGET_DIR
lea ecx, [ebp - 0x44]
call fcn.0040168c
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0040f10f
mov edx, eax
lea ecx, [ebp + 0x10]
call fcn.0040adfa
lea ecx, [ebp - 0x44]
call fcn.0040178c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40c009
lea eax, [ebp + 0x10]
jmp 0x40c00c
add eax, 0xd
push 0x116
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40c026
mov dword [ebp - 0x24], eax
jmp 0x40c02c
add ecx, 0xd
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40c038
lea eax, [ebp - 8]
jmp 0x40c03b
add eax, 0xd
push 0x115
mov ecx, ebx
mov dword [ebp - 0x20], eax
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40c055
mov dword [ebp - 0x18], eax
jmp 0x40c05b
add ecx, 0xd
mov dword [ebp - 0x18], ecx
push 0x114
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40c072
mov dword [ebp - 0x14], eax
jmp 0x40c078
add ecx, 0xd
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0xe0]
test eax, eax
jne 0x40c087
and dword [ebp - 0x28], eax
jmp 0x40c095
mov ecx, dword [esi + 0xe4]
sub ecx, eax
sar ecx, 4
mov dword [ebp - 0x28], ecx
push 0x113
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40c0ac
mov dword [ebp - 0x1c], eax
jmp 0x40c0b2
add ecx, 0xd
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 0xfc]
mov ecx, ebx
add eax, 0x64
push eax
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40c0ce
mov dword [ebp - 0x4c], eax
jmp 0x40c0d4
add ecx, 0xd
mov dword [ebp - 0x4c], ecx
push 0x112
mov ecx, ebx
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
jne 0x40c0eb
mov dword [ebp - 0x54], eax
jmp 0x40c0f1
add ecx, 0xd
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40c0fd
lea eax, [ebp - 0xc]
jmp 0x40c100
add eax, 0xd
push 0x111
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.0041ff60
mov ecx, dword [eax]
mov ebx, eax
test ecx, ecx
je 0x40c11a
lea ebx, [ecx + 0xd]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x40c126
lea edi, [ebp - 4]
jmp 0x40c129
add edi, 0xd
push 0x110
lea ecx, [esi + 0xd4]
call fcn.0041ff60
mov ecx, dword [eax]
test ecx, ecx
je 0x40c142
lea eax, [ecx + 0xd]
push dword [ebp - 0x10]
fld dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push ecx
push ecx
fstp qword [esp]
push dword [ebp - 0x14]
fld dword [esi + 0xec]
push ecx
push ecx
fstp qword [esp]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [ebp - 0x2c]
push ebx
push edi
push eax
lea eax, [ebp - 0x9a8]
push 0x4295dc
push eax
call fcn.004152dc
add esp, 0x4c
lea eax, [ebp - 0x9a8]
push eax
push 0x40a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea ecx, [ebp + 0x10]
call fcn.0040178c
lea ecx, [ebp - 8]
call fcn.0040178c
lea ecx, [ebp - 0xc]
call fcn.0040178c
lea ecx, [ebp - 4]
call fcn.0040178c
lea edi, [esi + 0x20]
mov ecx, edi
call fcn.0040917d
test eax, eax
je 0x40c24c
cmp dword [esi + 0xc4], 0
jne 0x40c24c
push 0x41e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40c24c
mov eax, dword [edi]
test eax, eax
jne 0x40c1f4
mov eax, edi
jmp 0x40c1f7
add eax, 0xd
push dword [esi + 0xf4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00407807
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
je 0x40c216
lea eax, [ecx + 0xd]
push 0
push 0
push eax
mov ecx, esi
call fcn.00407556
lea ecx, [ebp - 0x9c]
mov dword [esi + 0xc4], eax
call fcn.0040178c
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x40c24c
push eax
push 0
push 0x172
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 0xf8], 2
je 0x40c273
push dword [ebp + 8]
mov ecx, esi
call fcn.0040c4f8
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
jmp 0x40c2a5
push dword [ebp + 8]
mov ecx, esi
call fcn.0040d78a
test al, al
jmp 0x40b102
mov eax, dword [esi + 0xc4]
add esi, 0xc4
test eax, eax
je 0x40c2a3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10