Function at 0x406927
Capabilities:
Get common file path
Set file attributes

Disassembly:
mov eax, 0x40b310
call fcn.0040a520
push ecx
mov eax, 0x5350
call fcn.0040a550
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x5360], esi
mov edi, 0x80004005
mov dword [ebp - 0x14], edi
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x40697c
lea ecx, [esi + 0xea0]
call fcn.00401170
push eax
call fcn.00407137
pop ecx
test al, al
je 0x406983
push ebx
push ebx
mov ecx, dword [esi + 0xe90]
call fcn.00403687
mov eax, edi
jmp 0x4070d1
cmp dword [ebp + 8], ebx
je 0x4070ce
cmp dword [esi + 8], ebx
jne 0x4070ce
cmp dword [esi + 0xe90], ebx
je 0x4070ce
push 0x410cd8
lea eax, [esi + 0xea0]
push eax
call fcn.0040143d
pop ecx
pop ecx
test al, al
je 0x406e1d
mov dword [esi + 0xe88], ebx
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
push 0xffffffffffffffff
push 0x40f030
lea eax, [ebp - 0x118]
push eax
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
call edi
push 0xffffffffffffffff
push str.QQDLProxy.dll
lea eax, [ebp - 0x118]
push eax
call edi
push ebx
lea edi, [esi + 8]
push edi
push 0x40c2b8
push 0x40c2d8
push ebx
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 0xe88]
push eax
call fcn.0040154d
add esp, 0x38
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x406db2
cmp dword [edi], ebx
je 0x406db2
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x5350], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x406a63
push dword [esi + 0xe90]
mov ecx, eax
call fcn.00401f2d
jmp 0x406a65
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0xeac], eax
mov ecx, dword [edi]
mov edx, dword [ecx]
lea edi, [esi + 0xeb0]
push edi
push eax
push ecx
call dword [edx + 0x10]
mov edi, 0x114a
push edi
push ebx
lea eax, [ebp - 0x126c]
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x126c], ebx
push edi
push ebx
lea eax, [ebp - 0x126c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov ebx, dword [esi + 0xe9c]
add ebx, 0x364
movsx eax, word [ebx]
dec eax
je 0x406b8f
dec eax
je 0x406b11
dec eax
jne 0x406c21
push 0x1004
push dword [ebx + 0x20c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x1268]
push eax
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
call edi
add esp, 0xc
mov ax, word [ebx + 0x210]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x264], ax
mov dword [ebp - 0x126c], 2
jmp 0x406bf0
push 0x1004
push dword [ebx + 0x214]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x1268]
push eax
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
call edi
add esp, 0xc
mov ax, word [ebx + 0x218]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x264], ax
push 0x20
lea eax, [ebx + 0x21a]
push eax
lea eax, [ebp - 0x262]
push eax
call edi
push 0x20
lea eax, [ebx + 0x31a]
push eax
lea eax, [ebp - 0x242]
push eax
call edi
push 0x32
add ebx, 0x41a
push ebx
lea eax, [ebp - 0x222]
push eax
call edi
add esp, 0x24
mov dword [ebp - 0x126c], 3
jmp 0x406bf0
push 0x1004
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x1268]
push eax
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
call edi
add esp, 0xc
mov ax, word [ebx + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x264], ax
push 0x20
lea eax, [ebx + 0xa]
push eax
lea eax, [ebp - 0x262]
push eax
call edi
push 0x20
add ebx, 0x10a
push ebx
lea eax, [ebp - 0x242]
push eax
call edi
add esp, 0x18
mov dword [ebp - 0x126c], 1
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x126c]
push edx
push eax
call dword [ecx + 0x38]
jmp 0x406c1b
or dword [ebp - 4], 0xffffffff
jmp 0x406c27
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
lea ecx, [ebp - 0x12a4]
call fcn.004073c3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push 0x34
lea edx, [ebp - 0x12a4]
push edx
push eax
call dword [ecx + 0x3c]
call fcn.004070e2
mov dword [ebp - 0x1270], eax
lea ecx, [ebp - 0x2124]
call fcn.004072c1
mov eax, dword [esi + 0xe9c]
mov cx, word [eax + 0x35c]
mov word [ebp - 0x2120], cx
mov ax, word [eax + 0x360]
mov word [ebp - 0x2122], ax
and dword [ebp - 0x211e], 0
mov ebx, 0x3e8
mov dword [ebp - 0x211a], ebx
mov dword [ebp - 0x2116], 4
push 0x104
push 0x410cd8
lea eax, [ebp - 0x2106]
push eax
call edi
xor eax, eax
mov dword [ebp - 0x210e], eax
mov dword [ebp - 0x210a], eax
push eax
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, ebx
idiv ecx
add edx, 0x36b0
mov word [ebp - 0x1efa], dx
mov eax, dword [ebp - 0x1270]
mov dword [ebp - 0x1efe], eax
call dword [sym.imp.MSVCRT.dll_rand]
cdq
idiv ebx
add edx, 0x32c8
mov word [ebp - 0x1ef4], dx
mov eax, dword [ebp - 0x1270]
mov dword [ebp - 0x1ef8], eax
mov ebx, 0xff
push ebx
mov eax, dword [esi + 0xe9c]
add eax, 0x114
push eax
lea eax, [esi + 0x23e]
push eax
call edi
mov eax, dword [esi + 0xe9c]
mov cx, word [eax + 0x124]
mov word [esi + 0x33e], cx
push ebx
add eax, 0x128
push eax
lea eax, [esi + 0x340]
push eax
call edi
mov eax, dword [esi + 0xe9c]
mov cx, word [eax + 0x138]
mov word [esi + 0x440], cx
push ebx
add eax, 0x13c
push eax
lea eax, [esi + 0x442]
push eax
call edi
add esp, 0x38
mov eax, dword [esi + 0xe9c]
mov ax, word [eax + 0x14c]
mov word [esi + 0x542], ax
mov dword [ebp - 0x14d8], 1
mov dword [ebp - 0x14d4], 5
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x2124]
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
xor ebx, ebx
jmp 0x406dc9
push ebx
push 0x40f7cc
mov ecx, dword [esi + 0xe90]
call fcn.00404b7e
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
cmp dword [ebp - 0x14], ebx
je 0x406e37
cmp dword [esi + 0xe88], ebx
je 0x406e2e
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x406df2
mov ecx, dword [eax]
push dword [esi + 0xeb4]
push eax
call dword [ecx + 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xe88]
cmp eax, ebx
je 0x406e0e
push str.ReleaseCommLib
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406e0e
call eax
lea eax, [esi + 0xe88]
push eax
call fcn.00401620
pop ecx
jmp 0x406e2e
mov ecx, dword [esi + 0xe90]
call fcn.00404b0a
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
cmp dword [ebp - 0x14], ebx
jne 0x4070ce
lea ecx, [ebp - 0x5334]
call fcn.0040730a
push 0x3205
push ebx
lea eax, [ebp - 0x5334]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0xe9c]
mov ecx, dword [eax + 0x35c]
mov dword [ebp - 0x2151], ecx
mov dword [ebp - 0x21bb], 0x98b1d9
mov ecx, dword [eax + 0x360]
mov dword [ebp - 0x214d], ecx
and byte [ebp - 0x21cc], 0
and byte [ebp - 0x21cb], 0
and byte [ebp - 0x21ca], 0
and byte [ebp - 0x21c9], 0
mov byte [ebp - 0x21c0], 1
push 5
pop ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x221c], ecx
push 0x1003
add eax, 0x25c
push eax
lea eax, [ebp - 0x5330]
push eax
call edi
add esp, 0x18
lea ecx, [esi + 0xea0]
push 0x103
call fcn.00401170
push eax
lea eax, [ebp - 0x432c]
push eax
call edi
add esp, 0xc
lea edi, [esi + 8]
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [esi + 0xe9c]
add edx, 0x25c
push edx
push eax
call dword [ecx + 0x48]
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x5338]
push edx
lea edx, [ebp - 0x5334]
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
push str.patch
call fcn.00407137
pop ecx
test al, al
jne 0x406f2d
push str.patch
call fcn.00407164
pop ecx
push str..tdl
lea eax, [esi + 0xea0]
push eax
lea eax, [ebp - 0x5344]
push eax
call fcn.004014fc
add esp, 0xc
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x5344]
call fcn.00401170
push eax
call fcn.00407137
pop ecx
test al, al
je 0x406fee
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x5344]
call fcn.00401170
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x406fdd
push ebx
push 0x40f79c
mov ecx, dword [esi + 0xe90]
call fcn.00404b7e
push ebx
mov eax, dword [esi + 0xe90]
push dword [eax + 0x398]
call dword [sym.imp.USER32.dll_EndDialog]
push ebx
push 0x40f57c
push 0x40f77c
mov eax, dword [esi + 0xe90]
push dword [eax + 0x398]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40705d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
lea ecx, [ebp - 0x5344]
jmp 0x40700c
lea ecx, [esi + 0xea0]
call fcn.00401170
push eax
call fcn.00407137
pop ecx
test al, al
je 0x407073
push 0x20
lea ecx, [esi + 0xea0]
call fcn.00401170
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x407073
push ebx
push 0x40f79c
mov ecx, dword [esi + 0xe90]
call fcn.00404b7e
push ebx
mov eax, dword [esi + 0xe90]
push dword [eax + 0x398]
call dword [sym.imp.USER32.dll_EndDialog]
push ebx
push 0x40f57c
push 0x40f75c
mov eax, dword [esi + 0xe90]
push dword [eax + 0x398]
call dword [sym.imp.USER32.dll_MessageBoxA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5344]
call fcn.004010b2
mov eax, 0x80004005
jmp 0x4070d1
cmp dword [ebp - 0x14], ebx
jne 0x4070bf
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x5330]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x4070bf
mov eax, dword [ebp - 0x5338]
mov dword [esi + 0xeb4], eax
mov edi, dword [edi]
mov eax, dword [edi]
lea ecx, [ebp - 0x5330]
push ecx
push 2
push edi
call dword [eax + 0x44]
mov eax, dword [esi + 0xe9c]
cmp eax, ebx
je 0x4070bf
push dword [eax + 0x250]
mov ecx, esi
call fcn.0040728b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5344]
call fcn.004010b2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4