Function at 0x4704f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5adf4b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
call fcn.0047b810
mov esi, dword [ebp + 8]
push esi
mov dword [0x5fe658], esi
call fcn.00484100
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea ebx, [esp + 0x10]
call fcn.004747c0
mov dword [esp + 0x48], 0
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x470584
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4706bf
cmp ecx, eax
jg 0x4706bf
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x470584
push 0x5c
mov edi, ebx
call fcn.00404400
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, 0x5c2190
call fcn.00412480
mov eax, dword [eax]
push eax
call fcn.00470480
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4705ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004cffd0
push esi
call fcn.00528af0
mov ecx, dword [ebp + 0x10]
add esp, 4
push ecx
call fcn.0043ac60
add esp, 4
xor ebx, ebx
test eax, eax
je 0x4706c9
mov esi, dword [0x5fe6f0]
cmp esi, ebx
mov dword [0x5fe6f0], ebx
je 0x470616
lea edx, [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x470616
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x5fe64c]
cmp eax, ebx
mov dword [0x5fe650], ebx
mov dword [0x5fe654], ebx
je 0x47063e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5fe64c], ebx
mov eax, dword [0x5f9b20]
cmp eax, ebx
je 0x470654
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x5f9b20], ebx
mov eax, dword [0x5f9b1c]
cmp eax, ebx
je 0x47066a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5f9b1c], ebx
cmp byte [0x5fe5af], bl
je 0x47067d
call fcn.0047ba70
mov byte [0x5fe5af], bl
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4706a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00404550
mov dword [esp + 0x18], vtable.CSingleModule.0
mov dword [esp + 0x1c], ebx
mov edi, str.Tencent_QQCONFIG_Client_Mutex_532C65C7_31EE_4f2e_95AB_9E4230A07C92
lea eax, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.004754a0
test eax, eax
je 0x47075f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp eax, ebx
jne 0x4706fa
xor esi, esi
jmp 0x470701
call fcn.00475500
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x470715
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x470732
mov edi, dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, ebx
je 0x470732
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add dword [0x60600c], 1
cmp byte [0x5fe5af], 0
je 0x470747
call fcn.0047ba70
mov byte [0x5fe5af], 0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4708f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4708f2
push 0x2dc
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x48], 2
je 0x470783
push eax
call fcn.00461490
mov edi, eax
jmp 0x470785
xor edi, edi
push ebx
mov byte [esp + 0x4c], 1
push 1
lea eax, [esp + 0x1c]
mov dword [0x5fe65c], edi
mov dword [esp + 0x1c], 0xae
call fcn.0047b780
call fcn.00470940
mov eax, dword [edi + 4]
push eax
push str.Tencent_QQPinyin_WND_532C65C7_31EE_4f2e_95AB_9E4230A07C92
push eax
call dword [sym.imp.USER32.dll_SetPropW]
mov esi, dword [ebp + 0x14]
mov ecx, dword [edi + 4]
push esi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebx
je 0x4707d2
add dword [0x60600c], 1
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x470849
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x20]
push eax
push ecx
call ebx
test eax, eax
jne 0x470832
cmp dword [esp + 0x24], 0x200
jne 0x47081c
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [0x602cb8]
push 0x407
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4707f0
xor ebx, ebx
mov esi, dword [0x5fe6f0]
cmp esi, ebx
mov dword [0x5fe6f0], ebx
je 0x470871
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x470871
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
call dword [sym.imp.ole32.dll_OleUninitialize]
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov eax, dword [0x5fe64c]
cmp eax, ebx
mov dword [0x5fe650], ebx
mov dword [0x5fe654], ebx
je 0x4708a4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5fe64c], ebx
mov eax, dword [0x5f9b20]
cmp eax, ebx
je 0x4708ba
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x5f9b20], ebx
mov eax, dword [0x5f9b1c]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4708d2
push eax
call esi
mov dword [0x5f9b1c], ebx
cmp byte [0x5fe5af], 0
je 0x4708e7
call fcn.0047ba70
mov byte [0x5fe5af], 0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4708f2
push eax
call esi
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47091a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10