Function at 0x1000381c
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
add ecx, 0x44
call fcn.10004330
test eax, eax
ja 0x1000383f
push 3
pop eax
jmp 0x10003f46
xor ebx, ebx
push 0x104
push ebx
push dword [ebp + 8]
call fcn.1000c170
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4cf]
mov byte [ebp - 0x4d0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
lea ecx, [ebp - 0x70]
stosb byte es:[edi], al
mov al, byte [ebp + 0xf]
push ebx
mov byte [ebp - 0x70], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 0xc0], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x80], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x60], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 0xa0], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0xd0], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.100045bf
push dword [ebp + 0xc]
call fcn.1000c260
pop ecx
push eax
lea ecx, [ebp - 0x50]
push dword [ebp + 0xc]
call fcn.1000472a
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x90]
mov byte [ebp - 0x90], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x18], al
call fcn.100045bf
mov al, byte [ebp + 0xf]
mov esi, dword [str.UIMng]
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], 3
mov byte [ebp - 0x28], al
call fcn.100045bf
push esi
call fcn.1000c260
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.1000472a
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
push eax
call fcn.100048aa
neg eax
sbb al, al
push 1
inc al
lea ecx, [ebp - 0x28]
mov byte [ebp + 0xf], al
call fcn.100045bf
cmp byte [ebp + 0xf], bl
je 0x10003996
mov esi, str._ProgramFiles_
push esi
call fcn.1000c260
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.1000472a
jmp 0x100039a0
lea eax, [ebp - 0x38]
push eax
call fcn.1000510b
pop ecx
mov esi, 0x1001b71c
push esi
call fcn.1000c260
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.100043e5
mov edi, dword [ebp - 4]
push dword [0x100175b4]
lea ecx, [edi + 0x58]
push ebx
push ecx
mov ecx, eax
call fcn.1000435d
push esi
mov dword [ebp + 0xc], eax
call fcn.1000c260
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.100043e5
lea eax, [ebp - 0x38]
push eax
call fcn.10005146
mov eax, dword [ebp - 0x34]
pop ecx
cmp eax, ebx
jne 0x100039f5
mov eax, 0x100175b0
push eax
call fcn.100053bd
pop ecx
lea eax, [edi + 0x68]
push dword [0x100175b4]
lea ecx, [ebp - 0x38]
push ebx
push eax
call fcn.1000435d
push esi
mov dword [ebp + 0xc], eax
call fcn.1000c260
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.100043e5
lea eax, [ebp - 0x38]
push eax
call fcn.10005146
mov eax, dword [ebp - 0x34]
pop ecx
cmp eax, ebx
mov esi, 0x100175b0
jne 0x10003a3b
mov eax, esi
push eax
call fcn.100053bd
pop ecx
lea eax, [ebp - 0x50]
push ebx
sub esp, 0x10
mov ecx, esp
push eax
call fcn.1000421b
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.10003f4d
push dword [0x100175b4]
lea ecx, [ebp - 0x90]
push ebx
call fcn.10004245
push dword [0x100175b4]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x90]
push ebx
push eax
call fcn.1000435d
push dword [0x100175b4]
lea ecx, [ebp - 0x70]
push ebx
push ecx
mov ecx, eax
call fcn.1000435d
mov eax, dword [ebp - 0x8c]
mov byte [ebp + 0xf], 1
cmp eax, ebx
jne 0x10003aa6
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10003c00
xor eax, eax
lea edi, [ebp - 0x3e]
mov word [ebp - 0x40], bx
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
jne 0x10003ad0
mov eax, 0x100175b0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10004fc4
pop ecx
test al, al
pop ecx
je 0x10003c24
mov eax, dword [ebp - 0x4c]
mov esi, 0x100175b0
cmp eax, ebx
jne 0x10003af2
mov eax, esi
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x20]
call fcn.10006144
lea ecx, [ebp - 0xb0]
push str.version
push ecx
mov ecx, eax
call fcn.1000604c
push dword [0x100175b4]
lea ecx, [ebp - 0xa0]
push ebx
push eax
call fcn.1000443c
push 1
lea ecx, [ebp - 0xb0]
call fcn.100045bf
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x3e]
push eax
movzx eax, word [ebp - 0x40]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x4d0]
push 0x3e8
push eax
call fcn.1000b186
mov al, byte [ebp + 0xf]
add esp, 0x1c
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
push ebx
call fcn.100045bf
lea eax, [ebp - 0x4d0]
push eax
call fcn.1000c260
pop ecx
push eax
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000472a
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x10003b93
mov ecx, esi
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
jne 0x10003b9f
mov eax, esi
cmp dword [ebp - 0x4c], ebx
je 0x10003ba7
mov esi, dword [ebp - 0x4c]
push ecx
push eax
push esi
push str.check_and_update__s_:_verOnSvr_s__verOnInstall_s
call fcn.10004a04
add esp, 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
push eax
call fcn.100048aa
test eax, eax
jne 0x10003be8
push dword [0x100175b4]
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x18]
push ebx
push eax
call fcn.1000443c
mov byte [ebp + 0xf], bl
mov dword [ebp - 8], ebx
jmp 0x10003bec
mov byte [ebp + 0xf], 1
push 1
lea ecx, [ebp - 0x28]
call fcn.100045bf
mov edi, dword [ebp - 4]
mov esi, 0x100175b0
jmp 0x10003c19
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
jne 0x10003c0c
mov eax, esi
push eax
push str.does_not_exist_file:__s
call fcn.10004a04
pop ecx
pop ecx
cmp byte [ebp + 0xf], bl
je 0x10003ec1
jmp 0x10003c2c
mov edi, dword [ebp - 4]
mov esi, 0x100175b0
push 1
lea eax, [ebp - 0x50]
sub esp, 0x10
mov ecx, esp
push eax
call fcn.1000421b
lea eax, [ebp - 0xc0]
mov ecx, edi
push eax
call fcn.10003f4d
push dword [0x100175b4]
lea ecx, [ebp - 0x80]
push ebx
call fcn.10004245
lea eax, [ebp - 0xb0]
push eax
call fcn.10005219
pop ecx
push dword [0x100175b4]
lea ecx, [ebp - 0x80]
push ebx
push eax
call fcn.1000435d
push dword [0x100175b4]
lea ecx, [ebp - 0xc0]
push ebx
push ecx
mov ecx, eax
call fcn.1000435d
push 1
lea ecx, [ebp - 0xb0]
call fcn.100045bf
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
jne 0x10003ca1
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0x14]
cmp eax, ebx
jne 0x10003cb1
mov eax, esi
mov edx, dword [ebp - 0xbc]
cmp edx, ebx
jne 0x10003cbd
mov edx, esi
mov ecx, dword [ebp - 0x7c]
cmp ecx, ebx
jne 0x10003cc6
mov ecx, esi
push dword [edi + 0x54]
push eax
push edx
push ecx
call fcn.10004d16
add esp, 0x10
test al, al
je 0x10003ec1
push dword [0x100175b4]
lea ecx, [ebp - 0x60]
push ebx
call fcn.10004245
lea eax, [ebp - 0xb0]
push eax
call fcn.10005219
pop ecx
push dword [0x100175b4]
lea ecx, [ebp - 0x60]
push ebx
push eax
call fcn.1000435d
push dword [0x100175b4]
lea ecx, [ebp - 0x70]
push ebx
push ecx
mov ecx, eax
call fcn.1000435d
push 1
lea ecx, [ebp - 0xb0]
call fcn.100045bf
mov ecx, dword [ebp - 0x6c]
cmp ecx, ebx
jne 0x10003d30
mov ecx, esi
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jne 0x10003d39
mov eax, esi
push ecx
push eax
push str.temp_dll:__s__s
call fcn.10004a04
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
cmp ecx, ebx
jne 0x10003d51
mov ecx, esi
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
jne 0x10003d5a
mov eax, esi
push ecx
push eax
call fcn.10005980
pop ecx
test al, al
pop ecx
je 0x10003ec1
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
jne 0x10003d74
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [0x100175b4]
lea ecx, [ebp - 0x18]
push ebx
call fcn.10004245
mov al, byte [ebp + 0xf]
mov edi, dword [str.GWStub]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.100045bf
push edi
call fcn.1000c260
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.1000472a
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
push eax
call fcn.100048aa
neg eax
sbb al, al
push 1
inc al
lea ecx, [ebp - 0x28]
mov byte [ebp + 0xf], al
call fcn.100045bf
push dword [0x100175b4]
cmp byte [ebp + 0xf], bl
push ebx
je 0x10003eb2
lea ecx, [ebp - 0x18]
call fcn.10004245
push dword [0x100175b4]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push ebx
push eax
call fcn.1000435d
push dword [0x100175b4]
lea ecx, [ebp - 0x70]
push ebx
push ecx
mov ecx, eax
call fcn.1000435d
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x10003e15
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x10003e25
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10003e80
push dword [0x100175b4]
lea ecx, [ebp - 0x18]
push ebx
call fcn.10004245
push dword [0x100175b4]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push ebx
push eax
call fcn.1000435d
mov esi, str.new_
mov edi, eax
push esi
call fcn.1000c260
pop ecx
push eax
push esi
mov ecx, edi
call fcn.100043e5
push dword [0x100175b4]
lea ecx, [ebp - 0x70]
push ebx
push ecx
mov ecx, eax
call fcn.1000435d
mov esi, 0x100175b0
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x10003e89
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jne 0x10003e99
mov eax, esi
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.10005510
neg al
sbb eax, eax
pop ecx
and al, 0xfe
pop ecx
inc eax
inc eax
mov dword [ebp - 8], eax
jmp 0x10003ec1
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x18]
push eax
call fcn.1000435d
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x14], ebx
je 0x10003ec9
mov esi, dword [ebp - 0x14]
push esi
push 0x1001b664
push dword [ebp + 8]
call fcn.1000c470
add esp, 0xc
lea ecx, [ebp - 0x18]
push 1
pop esi
push esi
call fcn.100045bf
push esi
lea ecx, [ebp - 0x90]
call fcn.100045bf
push esi
lea ecx, [ebp - 0x38]
call fcn.100045bf
push esi
lea ecx, [ebp - 0x50]
call fcn.100045bf
push esi
lea ecx, [ebp - 0xd0]
call fcn.100045bf
push esi
lea ecx, [ebp - 0xa0]
call fcn.100045bf
push esi
lea ecx, [ebp - 0x60]
call fcn.100045bf
push esi
lea ecx, [ebp - 0x80]
call fcn.100045bf
push esi
lea ecx, [ebp - 0xc0]
call fcn.100045bf
push esi
lea ecx, [ebp - 0x70]
call fcn.100045bf
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8