Function at 0x404bc0
Capabilities:
Check os version
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x828]
sub esp, 0x828
push 0xffffffffffffffff
push 0x416908
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41c060]
xor eax, ebp
mov dword [ebp + 0x824], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x830]
mov esi, dword [ebp + 0x838]
xor ebx, ebx
push 0x103
lea ecx, [ebp + 0x105]
push ebx
or edi, 0xffffffff
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x104], bl
call fcn.004075f0
push 0x103
lea edx, [ebp + 0x411]
push ebx
push edx
mov byte [ebp + 0x410], bl
call fcn.004075f0
push 0x103
lea eax, [ebp + 0x30d]
push ebx
push eax
mov byte [ebp + 0x30c], bl
call fcn.004075f0
push 0x103
lea ecx, [ebp + 0x209]
push ebx
push ecx
mov byte [ebp + 0x208], bl
call fcn.004075f0
push 0x103
lea edx, [ebp + 1]
push ebx
push edx
mov byte [ebp], bl
call fcn.004075f0
push 0x103
lea eax, [ebp + 0x721]
push ebx
push eax
mov byte [ebp + 0x720], bl
call fcn.004075f0
add esp, 0x48
lea ecx, [ebp - 0x24]
call fcn.00401000
mov dword [ebp - 4], ebx
call fcn.00404900
cmp esi, ebx
mov dword [0x41d490], eax
jne 0x404cc0
xor eax, eax
jmp 0x404cd0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404cc5
sub eax, edx
push eax
push esi
mov ecx, 0x41d528
call fcn.00401f50
mov eax, dword [0x41d528]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00401ad0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004046d0
add esp, 4
call fcn.00402f00
mov eax, dword [0x41d4c0]
cmp eax, ebx
jne 0x404d22
cmp dword [0x41d4c4], ebx
jne 0x404d22
cmp dword [0x41d4c8], ebx
je 0x404ddc
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x404d58
call fcn.00402680
cmp eax, ebx
je 0x404d58
push 0x30
push 0x4179d0
push 0x4179a4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00401110
xor eax, eax
jmp 0x405235
cmp dword [0x41d4c4], ebx
je 0x404d8f
call fcn.00402680
cmp eax, 1
je 0x404d8f
push 0x30
push 0x4179d0
push 0x41797c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00401110
xor eax, eax
jmp 0x405235
cmp dword [0x41d4c8], ebx
je 0x404dd9
call fcn.00401480
test eax, eax
jne 0x404dd9
push 0x30
push 0x4179d0
push 0x417958
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00401110
xor eax, eax
jmp 0x405235
mov dword [ebp - 4], ebx
cmp dword [0x41d488], ebx
je 0x404e76
push 0x94
lea ecx, [ebp + 0x584]
push ebx
push ecx
call fcn.004075f0
add esp, 0xc
lea edx, [ebp + 0x584]
push edx
mov dword [ebp + 0x584], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404e76
cmp dword [ebp + 0x588], 6
jae 0x404e76
mov eax, dword [0x41d6d4]
mov edx, dword [eax + 0xc]
mov ecx, 0x41d6d4
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x82
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00402e50
mov eax, dword [ebp - 0x14]
push 0x10
push str.Error
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x14]
call fcn.00401ab0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00401110
mov eax, 0xfffffff5
jmp 0x405235
call fcn.004044a0
cmp dword [0x41d480], ebx
je 0x404f47
cmp dword [0x41d51c], ebx
jne 0x404f47
mov ecx, dword [ebp - 0x28]
push ebx
push ebx
push ebx
push 0x81
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x404f47
push 2
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
cmp edi, ebx
je 0x404f28
mov edx, dword [0x41d6d4]
mov eax, dword [edx + 0xc]
mov ecx, 0x41d6d4
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push ebx
push 0x8d
mov byte [ebp - 4], 4
call fcn.00401550
add esp, 8
cmp eax, ebx
je 0x404efe
push 0x8d
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402d00
mov esi, dword [ebp - 0x1c]
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [ebp + 0x104]
push 0x104
push ecx
call fcn.00401200
add esp, 8
cmp eax, ebx
je 0x40515c
push 0x104
lea edx, [ebp + 0x410]
push edx
lea eax, [ebp + 0x104]
push eax
call fcn.00403c80
add esp, 0xc
test eax, eax
jne 0x404f9b
push 0x41794c
lea ecx, [ebp + 0x410]
push 0x104
push ecx
call fcn.004084e2
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x104
lea edx, [ebp]
push edx
push 0x67
push ebx
call esi
push 0x104
lea eax, [ebp + 0x30c]
push eax
push 0x68
push ebx
mov dword [ebp - 0x18], 0xfffffffe
call esi
cmp eax, ebx
je 0x40515c
push 0x104
lea ecx, [ebp + 0x208]
push ecx
push 0x69
push ebx
call esi
cmp eax, ebx
je 0x40515c
cmp dword [0x41d490], ebx
jne 0x40505b
lea eax, [ebp + 0x410]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405000
sub eax, edx
push eax
lea edx, [ebp + 0x410]
push edx
push 0x417948
mov ecx, 0x41d540
call fcn.00406b40
mov eax, dword [0x41d530]
mov eax, dword [eax - 0xc]
push eax
mov ecx, 0x41d530
call fcn.00401d20
push eax
push 0x417944
mov ecx, 0x41d540
call fcn.00406b40
mov ecx, dword [0x41d48c]
push ecx
push 0x417940
mov ecx, 0x41d540
call fcn.00406d20
mov ecx, 0x41d530
call fcn.00401a90
lea edx, [ebp + 0x30c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.00401010
cmp eax, ebx
jne 0x405091
lea eax, [ebp + 0x30c]
push eax
push SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.00401010
lea ecx, [ebp + 0x410]
push ecx
lea edx, [ebp + 0x208]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0xfffffffc
call fcn.004010b0
push 0x4176ac
push 0x41793c
lea ecx, [ebp - 0x24]
call fcn.004010b0
push 0x103
lea eax, [ebp + 0x61d]
push ebx
push eax
mov byte [ebp + 0x61c], bl
call fcn.004075f0
add esp, 0xc
cmp dword [0x41d494], ebx
je 0x4053ff
cmp dword [0x41d4ac], ebx
jne 0x405103
cmp dword [0x41d4b0], ebx
jne 0x405103
cmp dword [0x41d4b4], ebx
je 0x4053ff
push 0x104
lea ecx, [ebp + 0x515]
push ebx
push ecx
mov byte [ebp + 0x514], bl
call fcn.004075f0
push 0x104
lea edx, [ebp + 0x61c]
push ebx
push edx
call fcn.004075f0
lea eax, [ebp + 0x514]
push eax
push 0x104
call fcn.00405ef0
add esp, 0x20
cmp eax, ebx
jne 0x40525c
push 0x30
push str.Error
push str.GetTempPath_failed_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x41d6d4]
mov eax, dword [edx + 0xc]
mov ecx, 0x41d6d4
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov edx, dword [0x41d6d4]
mov eax, dword [edx + 0xc]
mov ecx, 0x41d6d4
mov byte [ebp - 4], 5
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
push ebx
push 0x85
mov byte [ebp - 4], 6
call fcn.00401550
add esp, 8
cmp eax, ebx
je 0x4051b3
push 0x85
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402d00
mov edi, dword [ebp - 0x1c]
push ebx
push 0x89
call fcn.00401550
add esp, 8
cmp eax, ebx
je 0x4051d6
push 0x89
push eax
lea ecx, [ebp - 0x28]
call fcn.00402d00
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
push 0x40
push esi
push edi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405204
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00401110
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x824]
xor ecx, ebp
call fcn.004075d4
add ebp, 0x828
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp + 0x514]
push ecx
lea edx, [ebp + 0x61c]
push edx
call fcn.00401600
lea eax, [ebp + 0x61c]
add esp, 8
lea edx, [eax + 1]
jmp 0x405280
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405280
sub eax, edx
cmp byte [ebp + eax + 0x61b], 0x5c
je 0x4052a9
lea eax, [ebp + 0x61c]
push 0x417710
push eax
call fcn.00401630
add esp, 8
lea ecx, [ebp + 0x61c]
push str.KAVOEM
push ecx
call fcn.00401630
add esp, 8
cmp dword [0x41d4ac], ebx
je 0x40532e
lea edx, [ebp + 0x61c]
push edx
lea eax, [ebp + 0x720]
push eax
call fcn.00401600
lea ecx, [ebp + 0x720]
push str.oem
push ecx
call fcn.00401630
lea edx, [ebp + 0x720]
push 0x2710
push edx
call fcn.00405690
add esp, 0x18
cmp eax, 1
jne 0x40530e
mov dword [ebp - 0x18], 0xfffffff8
jmp 0x40515c
push str.__oemdir
mov ecx, 0x41d528
call fcn.00402ec0
lea eax, [ebp + 0x720]
push eax
mov ecx, 0x41d528
call fcn.00402ec0
cmp dword [0x41d4b0], ebx
je 0x40539f
lea ecx, [ebp + 0x61c]
push ecx
lea edx, [ebp + 0x720]
push edx
call fcn.00401600
lea eax, [ebp + 0x720]
push str._root
push eax
call fcn.00401630
lea ecx, [ebp + 0x720]
push 0x7530
push ecx
call fcn.00405690
add esp, 0x18
cmp eax, 1
jne 0x40537f
mov dword [ebp - 0x18], 0xfffffff6
jmp 0x40515c
push str.__oemdirroot
mov ecx, 0x41d528
call fcn.00402ec0
lea edx, [ebp + 0x720]
push edx
mov ecx, 0x41d528
call fcn.00402ec0
cmp dword [0x41d4b4], ebx
je 0x4053ff
lea eax, [ebp + 0x61c]
push eax
lea ecx, [ebp + 0x720]
push ecx
call fcn.00401600
lea edx, [ebp + 0x720]
push 0x1f4
push edx
call fcn.00405ac0
add esp, 0x10
cmp eax, 1
jne 0x4053df
mov dword [ebp - 0x18], 0xfffffff5
jmp 0x40515c
push str.__licensePath
mov ecx, 0x41d528
call fcn.00402ec0
lea eax, [ebp + 0x720]
push eax
mov ecx, 0x41d528
call fcn.00402ec0
lea ecx, [ebp + 0x720]
push 0x104
push ecx
call fcn.00406050
add esp, 8
cmp eax, ebx
jge 0x40543c
cmp eax, 0x80004005
je 0x405430
sub eax, 1
neg eax
sbb eax, eax
add eax, 0xfffffffa
mov dword [ebp - 0x18], eax
jmp 0x40515c
mov dword [ebp - 0x18], 0xfffffffb
jmp 0x40515c
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40544d
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp - 0x14], ebx
mov edx, dword [0x41d528]
push 1
push edx
lea eax, [ebp + 0x720]
push eax
call fcn.00401960
add esp, 0xc
cmp eax, 1
jne 0x40515c
lea ecx, [ebp + 0x720]
push ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x41d494], ebx
mov esi, eax
je 0x4054e1
cmp dword [0x41d4ac], ebx
jne 0x4054a0
cmp dword [0x41d4b0], ebx
jne 0x4054a0
cmp dword [0x41d4b4], ebx
je 0x4054e1
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x48]
lea edx, [ebp + 0x61c]
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x38], 0x14
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
cmp esi, ebx
je 0x405223
mov dword [ebp - 0x18], ebx
jmp 0x405223