Function at 0x409e10
Capabilities:
Check if file exists
Delete file
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45df3e
mov eax, dword fs:[0]
push eax
sub esp, 0x178
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1a4]
mov ebp, dword [esp + 0x19c]
mov eax, dword [esp + 0x1a0]
push 0
push 0x46df44
mov ecx, ebx
mov dword [eax], 0
call fcn.00401f90
lea esi, [ebp + 0x5c]
lea eax, [ebp + 0x48]
push esi
push eax
lea ecx, [esp + 0x168]
push ecx
call fcn.00403750
mov eax, dword [eax]
add esp, 0xc
push 0x10
push 0x46df34
push eax
call fcn.0044830f
mov edi, eax
mov eax, dword [esp + 0x16c]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x68], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409eb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x409ed9
mov ecx, dword [esp + 0x1a0]
mov dword [ecx], 3
push esi
mov ecx, ebx
call fcn.00401940
xor eax, eax
jmp 0x40b397
mov esi, edi
call fcn.00407ce0
lea edx, [esp + 0x24]
mov ebx, eax
push edx
mov dword [esp + 0x80], ebx
call fcn.00405600
lea esi, [esp + 0x164]
mov dword [esp + 0x194], 0
call fcn.00405560
lea eax, [esp + 0x24]
push eax
push ebx
push edi
mov byte [esp + 0x1a0], 1
mov dword [esp + 0x8c], 0
call fcn.00407ef0
add esp, 0xc
test eax, eax
je 0x40b30f
jmp 0x409f40
mov eax, dword [esp + 0x80]
inc eax
mov dword [esp + 0x80], eax
cmp eax, 1
je 0x40b2ec
mov ecx, dword [esp + 0x28]
push str.Remove
push ecx
call fcn.00432a46
add esp, 8
test eax, eax
jne 0x40a0f7
mov edx, dword [esp + 0x34]
push str.File
push edx
call fcn.00432a46
add esp, 8
test eax, eax
jne 0x40a044
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.0044860f
add esp, 8
test eax, eax
jne 0x40b2ec
mov eax, dword [esp + 0x24]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409fc3
test al, 1
je 0x409fc3
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x148]
push str.Check_file__
push eax
call fcn.004038f0
add esp, 0xc
push str.____Remove_file
push eax
lea ecx, [esp + 0x144]
push ecx
mov byte [esp + 0x1a0], 2
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a030
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x144]
jmp 0x40b2d0
mov ecx, dword [esp + 0x34]
push str.Folder
push ecx
call fcn.00432a46
add esp, 8
test eax, eax
jne 0x40b2ec
mov edx, dword [esp + 0x24]
push eax
push edx
call fcn.0044860f
add esp, 8
test eax, eax
jne 0x40b2ec
mov eax, dword [esp + 0x24]
push eax
call fcn.00405860
add esp, 4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x158]
push str.Check_folder__
push edx
call fcn.004038f0
add esp, 0xc
push str.____Remove_folder
push eax
lea eax, [esp + 0x154]
push eax
mov byte [esp + 0x1a0], 3
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x14c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a0e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x154]
jmp 0x40b2d0
mov ecx, dword [esp + 0x28]
push str.Exists
push ecx
call fcn.00432a46
add esp, 8
test eax, eax
jne 0x40a310
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b2ec
mov eax, dword [esp + 0x34]
push str.Folder
push eax
call fcn.00432a46
add esp, 8
test eax, eax
jne 0x40a1b9
mov edi, dword [esp + 0x24]
call fcn.004060e0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x134]
push str.Check_folder__
push edx
call fcn.004038f0
add esp, 0xc
push str.____Exists_folder
push eax
lea eax, [esp + 0x164]
push eax
mov byte [esp + 0x1a0], 4
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x15c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x130]
jmp 0x40b2d0
mov ecx, dword [esp + 0x34]
push str.File
push ecx
call fcn.00432a46
add esp, 8
test eax, eax
jne 0x40b2ec
push 0x30
call fcn.0041463b
add esp, 4
test eax, eax
je 0x40a1ec
mov esi, eax
call fcn.00403030
mov esi, eax
jmp 0x40a1ee
xor esi, esi
lea eax, [esp + 0x24]
push eax
lea eax, [ebp + 0x48]
mov dword [esi], 0
mov edx, dword [ebp + 4]
push eax
lea ecx, [esp + 0xa0]
push ecx
mov dword [esi + 0x28], edx
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x198], 5
call fcn.00401940
lea ecx, [esp + 0x98]
mov byte [esp + 0x194], 1
call fcn.00402140
lea edx, [ebp + 0x50]
push edx
lea eax, [ebp + 0x44]
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.00403750
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x108]
push eax
mov byte [esp + 0x1a0], 6
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x198], 7
call fcn.00401940
lea ecx, [esp + 0x100]
call fcn.00402140
lea ecx, [esp + 0xa0]
mov byte [esp + 0x194], 1
call fcn.00402140
mov eax, dword [ebp + 0x24]
lea ecx, [ebp + 0x1c]
push esi
push eax
call fcn.00430877
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xac]
push str.Check_file__
push edx
call fcn.004038f0
add esp, 0xc
push str.____Exists_file
push eax
lea eax, [esp + 0x160]
push eax
mov byte [esp + 0x1a0], 8
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x158]
call fcn.00402140
lea ecx, [esp + 0xa8]
mov byte [esp + 0x194], 1
call fcn.00402140
jmp 0x40b2ec
cmp dword [ebp + 4], 0
je 0x40a32c
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x24]
mov edx, dword [edx]
push eax
call edx
test eax, eax
je 0x40b3b3
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b0e3
call fcn.00414a0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b3f7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x194], 9
call fcn.00414a0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b3f7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
xor eax, eax
mov byte [esp + 0x194], 0xa
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea esi, [esp + 0x6c]
lea eax, [esp + 0x14]
call fcn.00405fd0
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], 0
je 0x40a442
mov edx, dword [esp + 0x14]
push eax
call fcn.00405ea0
add esp, 4
test eax, eax
je 0x40a442
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, eax
or edx, ecx
je 0x40a3eb
cmp eax, dword [esp + 0x6c]
jne 0x40a442
cmp ecx, dword [esp + 0x70]
jne 0x40a442
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xb4]
push str.Check_file__
push ecx
call fcn.004038f0
add esp, 0xc
push str.____Same_time_by_mt_and_fs
push eax
lea edx, [esp + 0x110]
push edx
mov byte [esp + 0x1a0], 0xb
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x108]
call fcn.00402140
lea ecx, [esp + 0xb0]
jmp 0x40a7b3
mov eax, dword [esp + 0x28]
push str.Patch
push eax
call fcn.00432a46
add esp, 8
test eax, eax
jne 0x40a50b
lea ecx, [esp + 0x18]
call fcn.00402160
mov byte [esp + 0x194], 0xc
mov ecx, dword [esp + 0x54]
xor edi, edi
test ecx, ecx
jle 0x40a4e3
mov eax, dword [esp + 0x50]
xor esi, esi
lea ecx, [ecx]
test esi, esi
jl 0x40b401
cmp edi, ecx
jge 0x40b401
mov eax, dword [esi + eax + 8]
mov edx, dword [esp + 0x14]
push eax
call fcn.00405ea0
mov ecx, dword [esp + 0x58]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x50]
je 0x40a4db
cmp edi, ecx
jge 0x40b401
mov edx, dword [esi + eax + 0x10]
or edx, dword [esi + eax + 0x14]
je 0x40a599
mov edx, dword [esi + eax + 0x10]
cmp edx, dword [esp + 0x6c]
jne 0x40a4db
mov edx, dword [esi + eax + 0x14]
cmp edx, dword [esp + 0x70]
je 0x40a599
inc edi
add esi, 0x20
cmp edi, ecx
jl 0x40a480
mov byte [esp + 0x194], 0xa
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a50b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
test ecx, ecx
ja 0x40a51f
test eax, eax
jbe 0x40aa2d
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
test edi, edi
ja 0x40a533
test esi, esi
jbe 0x40aa2d
cmp eax, esi
jne 0x40a53f
cmp ecx, edi
je 0x40aa2d
mov edx, dword [esp + 0x54]
xor eax, eax
test edx, edx
jle 0x40a579
mov ecx, dword [esp + 0x50]
add ecx, 0x10
test eax, eax
jl 0x40b401
cmp eax, edx
jge 0x40b401
mov ebx, dword [ecx]
cmp ebx, esi
jne 0x40a571
mov ebx, dword [ecx + 4]
cmp ebx, edi
je 0x40aa2d
inc eax
add ecx, 0x20
cmp eax, edx
jl 0x40a550
push 0x30
call fcn.0041463b
add esp, 4
test eax, eax
je 0x40a7d7
mov esi, eax
call fcn.00403030
mov esi, eax
jmp 0x40a7d9
mov esi, edi
shl esi, 5
add eax, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401940
cmp edi, dword [esp + 0x54]
jge 0x40b401
mov eax, dword [esp + 0x50]
mov edi, dword [esi + eax + 0x18]
mov ebx, dword [esi + eax + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x40a4e3
lea ecx, [eax - 1]
lea eax, [esp + 0x18]
call fcn.0040cf30
cmp ax, 0x2f
je 0x40a5ef
push 0x46e520
lea ecx, [esp + 0x1c]
call fcn.004025c0
push 0x30
call fcn.0041463b
add esp, 4
test eax, eax
je 0x40a608
mov esi, eax
call fcn.00403030
mov esi, eax
jmp 0x40a60a
xor esi, esi
mov dword [esi], 0
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x30]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0xc]
push edx
call fcn.00401940
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x14]
push eax
call fcn.00401940
lea edx, [esp + 0x28]
lea ecx, [esi + 0x10]
push edx
call fcn.00401940
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x24]
push edx
lea eax, [ebp + 0x48]
push eax
lea eax, [esp + 0x140]
push eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ebx
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x198], 0xd
call fcn.00401940
lea ecx, [esp + 0x138]
mov byte [esp + 0x194], 0xc
call fcn.00402140
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebp + 0x44]
push edx
lea eax, [esp + 0x118]
push eax
call fcn.00403750
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0xc0]
push edx
mov byte [esp + 0x1a0], 0xe
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x198], 0xf
call fcn.00401940
lea ecx, [esp + 0xb8]
call fcn.00402140
lea ecx, [esp + 0x110]
mov byte [esp + 0x194], 0xc
call fcn.00402140
mov eax, dword [ebp + 0x38]
lea ecx, [ebp + 0x30]
push esi
push eax
call fcn.00430877
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x11c]
push str.Check_file__
push ecx
call fcn.004038f0
add esp, 0xc
push str.____Patch_file_version
mov byte [esp + 0x198], 0x10
push eax
lea edx, [esp + 0xd0]
push edx
call fcn.00403810
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x158]
push edx
mov byte [esp + 0x1a0], 0x11
call fcn.00403750
add esp, 0xc
push 0x46e524
push eax
lea eax, [esp + 0xc8]
push eax
mov byte [esp + 0x1a0], 0x12
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0xc0]
call fcn.00402140
lea ecx, [esp + 0x150]
call fcn.00402140
lea ecx, [esp + 0xc8]
call fcn.00402140
lea ecx, [esp + 0x118]
call fcn.00402140
lea ecx, [esp + 0x18]
call fcn.00402140
lea ecx, [esp + 0x1c]
call fcn.00402140
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 1
call fcn.00402140
jmp 0x40b2ec
xor esi, esi
mov dword [esi], 0
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x30]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0xc]
push edx
call fcn.00401940
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x14]
push eax
call fcn.00401940
lea edx, [esp + 0x28]
lea ecx, [esi + 0x10]
push edx
call fcn.00401940
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
mov dword [esi + 0x24], eax
push ecx
lea eax, [ebp + 0x48]
push eax
lea edx, [esp + 0xd8]
push edx
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x198], 0x13
call fcn.00401940
mov byte [esp + 0x194], 0xa
mov eax, dword [esp + 0xd0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a87d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x50]
push ecx
lea edx, [ebp + 0x44]
push edx
lea eax, [esp + 0xe0]
push eax
call fcn.00403750
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x148]
mov bl, 0x14
push edx
mov byte [esp + 0x1a0], bl
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x198], 0x15
call fcn.00401940
mov byte [esp + 0x194], bl
mov eax, dword [esp + 0x140]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 0xa
mov eax, dword [esp + 0xd8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a91a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
push str.SelfUpdate
push ecx
call fcn.00432a46
add esp, 8
push esi
test eax, eax
jne 0x40a991
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push eax
call fcn.00430877
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xe4]
push str.Check_file__
push eax
call fcn.004038f0
add esp, 0xc
push str.____SelfUpdate_file_by_fs
push eax
lea ecx, [esp + 0x128]
push ecx
mov byte [esp + 0x1a0], 0x16
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x120]
call fcn.00402140
lea ecx, [esp + 0xe0]
jmp 0x40a9ef
mov eax, dword [ebp + 0x24]
lea ecx, [ebp + 0x1c]
push eax
call fcn.00430877
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xec]
push str.Check_file__
push eax
call fcn.004038f0
add esp, 0xc
push str.____Update_file_by_fs
push eax
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x1a0], 0x17
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x8c]
call fcn.00402140
lea ecx, [esp + 0xe8]
call fcn.00402140
mov byte [esp + 0x194], 9
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aa1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x14]
jmp 0x40b2d0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
call fcn.00407880
mov ebx, dword [esp + 0x1c]
cmp dword [ebx - 0xc], 0
je 0x40b406
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
call fcn.00432a46
add esp, 8
test eax, eax
je 0x40b028
push 0x30
call fcn.0041463b
add esp, 4
test eax, eax
je 0x40aa77
mov esi, eax
call fcn.00403030
mov esi, eax
jmp 0x40aa79
xor esi, esi
mov dword [esi], 0
mov edx, dword [ebp + 4]
lea eax, [esp + 0x30]
lea ecx, [esi + 0xc]
push eax
mov dword [esi + 0x28], edx
call fcn.00401940
lea edx, [esp + 0x2c]
lea ecx, [esi + 0x14]
push edx
call fcn.00401940
lea eax, [esp + 0x28]
lea ecx, [esi + 0x10]
push eax
call fcn.00401940
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x28]
push str.SelfUpdate
push edx
call fcn.00432a46
add esp, 8
test eax, eax
jne 0x40abec
lea eax, [esp + 0x24]
push eax
lea eax, [ebp + 0x48]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x198], 0x18
call fcn.00401940
lea ecx, [esp + 0x128]
mov byte [esp + 0x194], 0xa
call fcn.00402140
lea edx, [ebp + 0x50]
push edx
lea eax, [ebp + 0x44]
push eax
lea ecx, [esp + 0x150]
push ecx
call fcn.00403750
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0xf8]
push eax
mov byte [esp + 0x1a0], 0x19
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x198], 0x1a
call fcn.00401940
lea ecx, [esp + 0xf0]
call fcn.00402140
lea ecx, [esp + 0x148]
mov byte [esp + 0x194], 0xa
call fcn.00402140
push esi
lea ecx, [ebp + 8]
call fcn.00405510
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x94]
push str.Check_file__
push edx
call fcn.004038f0
add esp, 0xc
push str.____SelfUpdate_file
push eax
lea eax, [esp + 0x100]
push eax
mov byte [esp + 0x1a0], 0x1b
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0xf8]
call fcn.00402140
lea ecx, [esp + 0x90]
call fcn.00402140
jmp 0x40b0c6
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.Update
call fcn.00402510
test eax, eax
jne 0x40ad0d
lea edx, [esp + 0x24]
push edx
lea eax, [ebp + 0x48]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00403750
add esp, 0xc
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x198], 0x1c
call fcn.004019c0
lea ecx, [esp + 0x94]
mov byte [esp + 0x194], 0xa
call fcn.00402140
lea ecx, [ebp + 0x50]
push ecx
lea edx, [ebp + 0x44]
push edx
lea eax, [esp + 0xac]
push eax
call fcn.00403750
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0xa4]
push edx
mov byte [esp + 0x1a0], 0x1d
call fcn.00403750
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [esp + 0x198], 0x1e
call fcn.004019c0
lea ecx, [esp + 0x9c]
call fcn.00402140
lea ecx, [esp + 0xa4]
mov byte [esp + 0x194], 0xa
call fcn.00402140
push esi
lea ecx, [ebp + 0x1c]
call fcn.00405510
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xb8]
push str.Check_file__
push ecx
call fcn.004038f0
add esp, 0xc
push str.____Update_file
push eax
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0x1a0], 0x1f
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0xac]
call fcn.00402140
lea ecx, [esp + 0xb4]
call fcn.00402140
jmp 0x40b0c6
lea eax, [esp + 0x28]
push eax
mov ecx, str.Patch
call fcn.00402510
test eax, eax
jne 0x40b0c6
lea ecx, [esp + 0x20]
call fcn.00402160
xor edi, edi
mov byte [esp + 0x194], 0x20
mov eax, dword [esp + 0x54]
cmp eax, edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
jle 0x40adb8
xor ebx, ebx
test ebx, ebx
jl 0x40b401
cmp edi, eax
jge 0x40b401
mov ecx, dword [esp + 0x50]
mov ecx, dword [ebx + ecx + 4]
lea edx, [esp + 0x1c]
push edx
call fcn.00402510
test eax, eax
je 0x40ad83
mov eax, dword [esp + 0x54]
inc edi
add ebx, 0x20
cmp edi, eax
jl 0x40ad4f
jmp 0x40adb4
cmp edi, dword [esp + 0x54]
jge 0x40b401
shl edi, 5
add edi, dword [esp + 0x50]
lea ecx, [esp + 0x20]
push edi
call fcn.00401940
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x40af12
lea ecx, [eax - 1]
lea eax, [esp + 0x20]
call fcn.0040cf30
cmp ax, 0x2f
je 0x40ade7
push 0x46e520
lea ecx, [esp + 0x24]
call fcn.004025c0
lea eax, [esp + 0x24]
push eax
lea eax, [ebp + 0x48]
push eax
lea ecx, [esp + 0xc4]
push ecx
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x198], 0x21
call fcn.00401940
lea ecx, [esp + 0xbc]
mov byte [esp + 0x194], 0x20
call fcn.00402140
lea edx, [esp + 0x20]
push edx
lea eax, [ebp + 0x44]
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.00403750
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x1a0], 0x22
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x198], 0x23
call fcn.00401940
lea ecx, [esp + 0xc4]
call fcn.00402140
lea ecx, [esp + 0xcc]
mov byte [esp + 0x194], 0x20
call fcn.00402140
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [esi + 0x20], ecx
push esi
lea ecx, [ebp + 0x30]
mov dword [esi + 0x24], edx
call fcn.00405510
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xe0]
push str.Check_file__
push ecx
call fcn.004038f0
add esp, 0xc
push str.____Patch_file
push eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x1a0], 0x24
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0xd4]
call fcn.00402140
lea ecx, [esp + 0xdc]
call fcn.00402140
mov byte [esp + 0x194], 0xa
mov eax, dword [esp + 0x20]
jmp 0x40b0aa
lea eax, [esp + 0x24]
push eax
lea eax, [ebp + 0x48]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x198], 0x25
call fcn.00401940
lea ecx, [esp + 0xe4]
mov byte [esp + 0x194], 0x20
call fcn.00402140
lea edx, [ebp + 0x50]
push edx
lea eax, [ebp + 0x44]
push eax
lea ecx, [esp + 0xfc]
push ecx
call fcn.00403750
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0xf4]
push eax
mov byte [esp + 0x1a0], 0x26
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x198], 0x27
call fcn.00401940
lea ecx, [esp + 0xec]
call fcn.00402140
lea ecx, [esp + 0xf4]
mov byte [esp + 0x194], 0x20
call fcn.00402140
push esi
lea ecx, [ebp + 0x1c]
call fcn.00405510
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x108]
push str.Check_file__
push edx
call fcn.004038f0
add esp, 0xc
push str.____Update_file
push eax
lea eax, [esp + 0x104]
push eax
mov byte [esp + 0x1a0], 0x28
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0xfc]
call fcn.00402140
lea ecx, [esp + 0x104]
call fcn.00402140
mov byte [esp + 0x194], 0xa
mov eax, dword [esp + 0x20]
jmp 0x40b0aa
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push ecx
call fcn.00405df0
add esp, 4
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x118]
push str.Check_file__
push eax
call fcn.004038f0
add esp, 0xc
push str.____Same_file
push eax
lea ecx, [esp + 0x114]
push ecx
mov byte [esp + 0x1a0], 0x29
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x10c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b09b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 0xa
mov eax, dword [esp + 0x114]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x194], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40aa10
push 0x30
call fcn.0041463b
add esp, 4
test eax, eax
je 0x40b0fc
mov esi, eax
call fcn.00403030
mov esi, eax
jmp 0x40b0fe
xor esi, esi
lea edx, [esp + 0x30]
lea ecx, [esi + 0xc]
push edx
mov dword [esi], 0
call fcn.00401940
mov eax, dword [ebp + 4]
lea edx, [esp + 0x2c]
lea ecx, [esi + 0x14]
push edx
mov dword [esi + 0x28], eax
call fcn.00401940
lea eax, [esp + 0x28]
lea ecx, [esi + 0x10]
push eax
call fcn.00401940
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x24]
push edx
lea eax, [ebp + 0x48]
push eax
lea eax, [esp + 0x124]
push eax
mov dword [esi + 0x24], ecx
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x198], 0x2b
call fcn.00401940
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x50]
push ecx
lea edx, [ebp + 0x44]
push edx
lea eax, [esp + 0x134]
push eax
call fcn.00403750
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x12c]
mov bl, 0x2c
push edx
mov byte [esp + 0x1a0], bl
call fcn.00403750
add esp, 0xc
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x198], 0x2d
call fcn.00401940
mov byte [esp + 0x194], bl
mov eax, dword [esp + 0x124]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b214
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x12c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b23f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
push str.SelfUpdate
push ecx
call fcn.00432a46
add esp, 8
push esi
lea ecx, [ebp + 8]
test eax, eax
je 0x40b25c
lea ecx, [ebp + 0x1c]
mov eax, dword [ecx + 8]
push eax
call fcn.00430877
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x7c]
push str.Check_file__
push eax
call fcn.004038f0
add esp, 0xc
push str.____New_file
push eax
lea ecx, [esp + 0x13c]
push ecx
mov byte [esp + 0x1a0], 0x2e
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x134]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b2c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00407ef0
add esp, 0xc
test eax, eax
jne 0x409f40
mov edi, dword [esp + 0x68]
push edi
call fcn.00435147
mov byte [esp + 0x198], 0
mov eax, dword [esp + 0x170]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x168]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b366
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x164]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b389
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.004075f0
mov eax, 1
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x184
ret 0xc
mov ecx, dword [esp + 0x1a0]
lea edx, [esp + 0x24]
mov dword [ecx], 0xa
mov ecx, dword [esp + 0x1a4]
push edx
call fcn.00401940
mov eax, dword [esp + 0x68]
push eax
call fcn.00435147
add esp, 4
lea esi, [esp + 0x164]
call fcn.00408750
lea esi, [esp + 0x24]
call fcn.004075f0
xor eax, eax
jmp 0x40b397
push 0x80004005
call fcn.00402190
call fcn.0041492f
mov ecx, dword [esp + 0x1a0]
lea edx, [esp + 0x24]
mov dword [ecx], 0x1a
mov ecx, dword [esp + 0x1a4]
push edx
call fcn.00401940
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x7c]
push str.Check_file__
push ecx
call fcn.004038f0
add esp, 0xc
push str.____Failed
push eax
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x1a0], 0x2a
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 0xa
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00435147
lea eax, [ebx - 0x10]
add esp, 4
mov byte [esp + 0x194], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b4d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b3de