Function at 0x4138b5
Capabilities:
Delete file

Disassembly:
mov eax, 0x42ccc6
call fcn.00421904
mov eax, 0x3ff4
call fcn.00420a50
cmp dword [0x439d80], 0
push esi
push edi
je 0x413966
lea ecx, [ebp - 0x3000]
call fcn.0041dbe0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3000]
call fcn.0041e1f9
push eax
push 1
mov edi, 0x437fe0
push 1
push 0x67
mov ecx, edi
call fcn.0041c996
cmp eax, 0x811
je 0x413957
lea ecx, [ebp - 0x3000]
call fcn.0041e1f9
push eax
push 1
push 2
push 0x67
mov ecx, edi
call fcn.0041c996
lea ecx, [ebp - 0x3000]
call fcn.0041dfff
mov esi, eax
test esi, esi
jne 0x41396d
mov esi, 0x439d50
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [0x4421c8], 0
and byte [0x4421c7], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3000]
call fcn.0041dcb8
xor eax, eax
jmp 0x413c14
push ebx
lea ecx, [ebp - 0x3000]
call fcn.0041dea8
push eax
push str.update.dll_
push dword [esi]
lea eax, [ebp - 0x640]
push str._s_sversion_s
push 0x400
push eax
call fcn.004209f2
and byte [ebp - 0x241], 0
add esp, 0x18
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x3000]
push eax
call fcn.0041df62
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov ecx, dword [0x439d80]
push eax
lea eax, [ebp - 0x640]
mov ebx, 0x437ea8
push eax
push ebx
call fcn.0040e397
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x413a54
lea ecx, [ebp - 0x3000]
call fcn.0041dea8
push eax
push str.update.dll_
push str.http:__cns.3721.com_
push str._s_sversion_s
lea eax, [ebp - 0x640]
push 0x400
push eax
call fcn.004209f2
add esp, 0x18
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x3000]
push eax
call fcn.0041df62
push eax
call esi
mov ecx, dword [0x439d80]
push eax
lea eax, [ebp - 0x640]
push eax
push ebx
call fcn.0040e397
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x413a54
mov esi, 0x439d50
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [0x4421c8], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x413bed
push str.update.txt
lea ecx, [ebp - 0x3000]
call fcn.0041f7ad
push eax
push 0x4320f0
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.004209f2
and byte [ebp - 0x1d], 0
lea eax, [ebp - 0x120]
push 0x432e68
push eax
call fcn.00421bbb
add esp, 0x1c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x413a35
lea eax, [ebp - 0x14]
mov esi, 0x1000
push eax
lea eax, [ebp - 0x4000]
push esi
push eax
push dword [ebp - 0x10]
call dword [0x4424e8]
mov ebx, eax
cmp ebx, 1
jne 0x413ae4
cmp dword [ebp - 0x14], 0
je 0x413ae4
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x4000]
push eax
call fcn.00422a4a
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jb 0x413ae2
lea eax, [ebp - 0x14]
push eax
jmp 0x413aa3
xor ebx, ebx
push dword [ebp - 0x18]
call fcn.00421952
test ebx, ebx
pop ecx
je 0x413a35
push dword [0x441fe8]
lea ecx, [ebp - 0x240]
call fcn.00419d59
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x240]
push eax
mov byte [ebp - 4], 1
call fcn.0041ad7d
test eax, eax
mov esi, 0x439d50
je 0x413bc9
lea eax, [ebp - 0x120]
mov ecx, edi
push eax
push 2
push 1
push 0x67
call fcn.0041c996
mov ebx, 0x811
cmp eax, ebx
je 0x413bde
lea eax, [ebp - 0x120]
mov ecx, edi
push eax
push 2
push 2
push 0x67
call fcn.0041c996
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x240]
push eax
call fcn.00419e17
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 3
push 1
push 0x67
mov ecx, edi
call fcn.0041c996
cmp eax, ebx
je 0x413bde
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push 3
push 2
push 0x67
call fcn.0041c996
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x10], 0xc
jne 0x413bde
lea ecx, [ebp - 0x3000]
call fcn.0041e1f9
test eax, eax
je 0x413bc9
push eax
lea ecx, [ebp - 0x3000]
call fcn.0041e277
jmp 0x413bde
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [0x4421c8], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00419d9e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [0x4421c7], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3000]
call fcn.0041dcb8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4