Function at 0x411ee0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592915
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5fcffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
test esi, esi
js 0x4128a3
cmp esi, dword [ebx + 0x2288c]
jge 0x4128a3
mov eax, dword [ebx + 0x22888]
lea edi, [esi*4]
add eax, edi
lea ecx, [ebp - 0x14]
push eax
call fcn.00422ec0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
cmp esi, dword [ebx + 0x228a0]
jge 0x4128a3
mov eax, dword [ebx + 0x2289c]
lea ecx, [ebp - 0x20]
add eax, edi
push eax
call fcn.00422ec0
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
cmp esi, dword [ebx + 0x228b4]
jge 0x4128a3
mov eax, dword [ebx + 0x228b0]
lea ecx, [ebp - 0x34]
add eax, edi
push eax
call fcn.00422ec0
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], 0
cmp esi, dword [ebx + 0x228c8]
jge 0x4128a3
mov eax, dword [ebx + 0x228c4]
lea ecx, [ebp - 0x38]
add eax, edi
push eax
call fcn.00422ec0
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 0
cmp esi, dword [ebx + 0x228dc]
jge 0x4128a3
mov eax, dword [ebx + 0x228d8]
lea ecx, [ebp - 0x1c]
add eax, edi
push eax
call fcn.00422ec0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [ebx + 0x22950]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00420cc0
push 0x5d9d50
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 5
push eax
call fcn.00422a00
lea ecx, [ebx + 0x31c]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00420cc0
push str.flaguninstall
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
call fcn.00422a00
add esp, 0x30
mov byte [ebp - 4], 9
or ebx, 0xffffffff
mov edx, dword [ebp - 0x4c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41206a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412088
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4120a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x2c], 0
lea edi, [esi + 0x22954]
push edi
push eax
call fcn.00420cc0
push 0x5d9d50
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xc
push eax
call fcn.00422a00
lea ecx, [esi + 0x31c]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00420cc0
push 0x5d9d54
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
call fcn.00422a00
add esp, 0x30
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412120
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41213e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41215c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00420cc0
push 0x5d9d50
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x13
push eax
call fcn.00422a00
lea edi, [esi + 0x31c]
mov byte [ebp - 4], 0x14
push edi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00420cc0
push str.flagrun
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x15
push eax
call fcn.00422a00
add esp, 0x30
mov byte [ebp - 4], 0x17
mov eax, ebx
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4121cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4121eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov eax, ebx
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412209
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push eax
lea eax, [esi + 0x22958]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00420cc0
push 0x5d9d50
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x1a
push eax
call fcn.00422a00
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x1b
push eax
call fcn.00420cc0
push str.flagreinstall
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x1c
push eax
call fcn.00422a00
add esp, 0x30
mov byte [ebp - 4], 0x1e
mov eax, ebx
mov edx, dword [ebp - 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41227a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
mov eax, ebx
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412298
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x20
mov eax, ebx
mov edx, dword [ebp - 0x78]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4122b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x4128a8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x21
mov ecx, 0x5d8d04
mov eax, dword [ebp - 0x1c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412306
test dx, dx
je 0x412302
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412306
add eax, 4
add ecx, 4
test dx, dx
jne 0x4122e0
xor eax, eax
jmp 0x41230b
sbb eax, eax
or eax, 1
push 0x5daa48
test eax, eax
jne 0x41236d
lea eax, [esi + 0x338]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00422a00
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x22
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00420cc0
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x23
call fcn.00422d00
mov byte [ebp - 4], 0x22
mov eax, ebx
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412364
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x3c]
jmp 0x4123c1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00422a00
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x24
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00420cc0
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x25
call fcn.00422d00
mov byte [ebp - 4], 0x24
mov eax, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4123ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x44]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4123d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x44], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x14]
cmp eax, 1
jne 0x4124ba
push ecx
mov dword [ebp - 0x40], esp
mov ebx, dword [ebp - 0x30]
add ebx, 0xfffffff0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x41241a
cmp ecx, dword [ebx]
jne 0x41241a
lock inc dword [eax]
jmp 0x41244d
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4128b2
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea ecx, [ebx + 0x10]
mov edx, dword [ebx + 4]
add eax, 0x10
inc edx
push edx
push ecx
push edx
push eax
call fcn.00403400
mov ebx, dword [ebp - 0x3c]
add esp, 0x10
mov ecx, dword [ebp - 0x40]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.004093c0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4124ba
push 3
push dword [ebp - 0x34]
lea eax, [ebp - 0xf8]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], eax
call fcn.004212b0
push dword [ebp - 0xfc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
mov dword [ebp - 0x3c], eax
cmp ecx, edx
je 0x4124af
push ecx
call fcn.0057817f
mov eax, dword [ebp - 0x3c]
add esp, 4
test eax, eax
jne 0x412501
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp eax, 3
jl 0x4123e2
push ecx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x24]
add ebx, 0xfffffff0
mov dword [ebp - 0x44], 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x412653
cmp ecx, dword [ebx]
jne 0x412653
lock inc dword [eax]
jmp 0x412688
call eax
push ecx
mov dword [ebp - 0x3c], esp
lea ebx, [edi - 0x10]
mov ecx, dword [ebx]
mov dword [ebp - 0x44], 1
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x41252c
cmp ecx, dword [ebx]
jne 0x41252c
lock inc dword [eax]
jmp 0x41255f
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4128b2
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea ecx, [ebx + 0x10]
mov edx, dword [ebx + 4]
add eax, 0x10
inc edx
push edx
push ecx
push edx
push eax
call fcn.00403400
mov ebx, dword [ebp - 0x40]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x48]
call fcn.004128d0
cmp eax, 1
jne 0x4125d9
push ecx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x2c]
add ebx, 0xfffffff0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x412599
cmp ecx, dword [ebx]
jne 0x412599
lock inc dword [eax]
jmp 0x4125cc
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4128b2
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea ecx, [ebx + 0x10]
mov edx, dword [ebx + 4]
add eax, 0x10
inc edx
push edx
push ecx
push edx
push eax
call fcn.00403400
mov ebx, dword [ebp - 0x40]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.004093c0
push ecx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x28]
add ebx, 0xfffffff0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x41260e
cmp ecx, dword [ebx]
jne 0x41260e
lock inc dword [eax]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.004093c0
jmp 0x412758
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4128b2
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea ecx, [ebx + 0x10]
mov edx, dword [ebx + 4]
add eax, 0x10
inc edx
push edx
push ecx
push edx
push eax
call fcn.00403400
mov ebx, dword [ebp - 0x40]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.004093c0
jmp 0x412758
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x40], edx
test edx, edx
je 0x4128b2
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
lea eax, [ebx + 0x10]
mov ecx, dword [ebx + 4]
inc ecx
push ecx
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.00403400
mov ebx, dword [ebp - 0x40]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.004093c0
mov ebx, dword [ebp - 0x48]
mov ecx, 0x5d9118
mov eax, dword [ebx + 0x22880]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4126c9
test dx, dx
je 0x4126c5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4126c9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4126a3
xor eax, eax
jmp 0x4126ce
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412758
push 0x5d9414
push 0x5daa48
lea ecx, [ebp - 0x18]
call fcn.00420fa0
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x40], esp
lea ecx, [ebp - 0x18]
push ecx
push str.NO_FILE_:
push eax
call fcn.00422650
add esp, 8
mov byte [ebp - 4], 0x28
mov esi, esp
mov dword [ebp - 0x3c], esi
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x4128b7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x5d9da0
mov ecx, esi
mov byte [ebp - 4], 0x29
call fcn.00402a50
test al, al
jne 0x412746
push 2
push 0x5d9da0
mov ecx, esi
call fcn.00403260
mov byte [ebp - 4], 0x28
mov ecx, ebx
mov byte [ebp - 4], 0x21
call fcn.00408ab0
mov esi, dword [ebp - 0x18]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x20
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412776
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov eax, esi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412794
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4127b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4127d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4127ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41280c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41282a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412848
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412866
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x412882
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb08
mov esp, ebp
pop ebp
ret 4
call fcn.004250c2
push 0x80004005
call fcn.004033d0
call fcn.004033f0
push 0x80004005
call fcn.004033d0
int3