Function at 0x40a450
Capabilities:
Check if file exists
Check os version
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47b0d1
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x496684]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esp + 0xb4]
mov dword [esp + 0x1c], esi
call fcn.00407800
xor ebx, ebx
mov dword [esp + 0xe0], ebx
push 0x488730
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.0040c2f0
add esp, 0xc
mov byte [esp + 0xe0], 1
mov ecx, dword [esi + 0x24]
sub ecx, dword [esi + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jle 0x40a8f4
mov dword [esp + 0x20], ebx
jbe 0x40a8f4
mov dword [esp + 0x18], ebx
lea esp, [esp]
mov eax, dword [esi + 0x20]
add eax, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.00405160
mov byte [esp + 0xe0], 2
push 0x48be20
mov ebx, 1
lea eax, [esp + 0x80]
call fcn.0040bab0
push 0xffffffffffffffff
lea edx, [esp + 0x64]
push edx
lea ecx, [eax + 1]
lea edx, [esp + 0x84]
call fcn.00401670
mov byte [esp + 0xe0], 3
mov ebx, dword [esp + 0x70]
mov ecx, ebx
cmp ebx, 3
jb 0x40a57c
mov ecx, 3
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x40a58b
lea eax, [esp + 0x60]
push ecx
push 0x48be24
push eax
call fcn.004043d0
xor edi, edi
add esp, 0xc
cmp eax, edi
jne 0x40a5b4
cmp ebx, 3
jae 0x40a5aa
or eax, 0xffffffff
jmp 0x40a5b2
xor eax, eax
cmp ebx, 3
setne al
cmp eax, edi
sete al
test al, al
je 0x40a738
push 0x488730
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040c2f0
add esp, 0xc
mov bl, 4
mov byte [esp + 0xe0], bl
push edi
lea edx, [esp + 0x80]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x4c]
call fcn.004030f0
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x40a604
mov eax, esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call esi
test eax, eax
je 0x40a705
push 9
mov eax, str.3rdParty_
lea ecx, [esp + 0x2c]
call fcn.00402d60
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x40a634
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x40a652
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x40a64a
lea eax, [esp + 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x4c]
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push eax
mov byte [ecx], 0
call fcn.00405160
mov byte [esp + 0xfc], 5
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x84]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edx
mov byte [ecx], 0
call fcn.00405160
mov byte [esp + 0x118], 6
mov byte [esp + 0x118], bl
call fcn.0040ab20
cmp eax, edi
je 0x40a6ed
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x4c]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push eax
mov byte [ecx], 0
call fcn.00405160
mov byte [esp + 0xfc], 7
mov byte [esp + 0xfc], bl
call fcn.004096f0
jmp 0x40a70a
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x40a6fc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40a70a
mov esi, 0xf
mov byte [esp + 0xe0], 3
cmp dword [esp + 0x58], 0x10
jb 0x40a726
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0042ca67
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
jmp 0x40a85f
mov ecx, ebx
cmp ebx, 3
jb 0x40a744
mov ecx, 3
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x40a753
lea eax, [esp + 0x60]
push ecx
push 0x48be28
push eax
call fcn.004043d0
add esp, 0xc
cmp eax, edi
jne 0x40a77a
cmp ebx, 3
jae 0x40a770
or eax, 0xffffffff
jmp 0x40a778
xor eax, eax
cmp ebx, 3
setne al
cmp eax, edi
sete al
test al, al
je 0x40a863
push 0x488730
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.0040c2f0
add esp, 0xc
mov bl, 8
mov byte [esp + 0xe0], bl
mov eax, dword [esi + 0x20]
add eax, dword [esp + 0x18]
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa0]
call fcn.004030f0
mov eax, dword [esp + 0x98]
mov esi, 0x10
cmp dword [esp + 0xac], esi
jae 0x40a7df
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a824
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push edi
lea edx, [esp + 0xbc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push edx
mov byte [ecx], 0
call fcn.00405160
mov byte [esp + 0xfc], 9
mov byte [esp + 0xfc], bl
call fcn.0040af30
mov byte [esp + 0xe0], 3
cmp dword [esp + 0xac], esi
jb 0x40a845
mov eax, dword [esp + 0x98]
push eax
call fcn.0042ca67
add esp, 4
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
mov esi, dword [esp + 0x1c]
mov byte [esp + 0xe0], 2
cmp dword [esp + 0x74], 0x10
jb 0x40a87f
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042ca67
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
mov byte [esp + 0xe0], 1
cmp dword [esp + 0x90], 0x10
jb 0x40a8b0
mov edx, dword [esp + 0x7c]
push edx
call fcn.0042ca67
add esp, 4
mov ecx, dword [esi + 0x24]
sub ecx, dword [esi + 0x20]
add dword [esp + 0x18], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
inc edi
mov dword [esp + 0x90], ebx
add eax, edx
xor ebx, ebx
mov byte [esp + 0x7c], 0
mov dword [esp + 0x20], edi
cmp edi, eax
jb 0x40a500
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
mov esi, 7
xor edx, edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push 0x13
mov eax, 0x48be2c
mov word [ecx], dx
call fcn.00405630
mov byte [esp + 0xfc], 0xa
mov byte [esp + 0xfc], 1
call fcn.0040b0a0
cmp eax, 4
je 0x40aa14
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
mov dword [esp + 0x30], esp
mov word [ecx], ax
push 0xc
mov eax, str.WerFault.exe
call fcn.00405630
mov byte [esp + 0xfc], 0xb
mov byte [esp + 0xfc], 1
call fcn.0040b3c0
xor edi, edi
jmp 0x40a975
mov esi, 7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
xor edx, edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push 0x13
mov eax, 0x48be2c
inc edi
mov word [ecx], dx
call fcn.00405630
mov byte [esp + 0xfc], 0xc
mov byte [esp + 0xfc], 1
call fcn.0040b1e0
mov esi, eax
cmp esi, ebx
jne 0x40a9c1
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 5
jl 0x40a970
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov dword [esp + 0x30], esp
mov word [ecx], ax
push 0xf
mov eax, str.Bonjour_Service
call fcn.00405630
mov byte [esp + 0xfc], 0xd
mov byte [esp + 0xfc], 1
call fcn.0040b1e0
cmp esi, ebx
jne 0x40aa14
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x40]
push 0xffffffffffffffff
push ebx
push 0x46d
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [esp + 0xe0], bl
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x40aa33
mov eax, dword [esp + 0x28]
push eax
call fcn.0042ca67
add esp, 4
mov edi, 0xf
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0xc8], esi
jb 0x40aa68
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.0042ca67
add esp, 4
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret