Function at 0x4034a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45aac3
mov eax, dword fs:[0]
push eax
sub esp, 0xf4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4767b0]
xor eax, esp
push eax
lea eax, [esp + 0xf60]
mov dword fs:[0], eax
mov edi, ecx
push str.Meitu_XiuXiu_QQWEIBO_Main_Process
push 1
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi + 0xa4], eax
cmp eax, ebx
je 0x4036ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, 0xb7
jne 0x403543
push ebx
push 0x464bb4
call esi
mov ebp, eax
mov eax, dword [edi + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
je 0x403543
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403537
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4036f9
call fcn.00428751
mov eax, dword [eax + 8]
lea ecx, [esp + 0x34]
push ecx
push str.32770
push eax
call dword [sym.imp.USER32.dll_GetClassInfoW]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x5c], 0x464bb4
call fcn.0042774a
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00429c23
push ebx
call fcn.0042ac3a
add esp, 4
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0x47b140
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdiplusStartup
push 0x464bf8
mov ecx, edi
call fcn.0042b10d
push str.dialog
push str.32770
call esi
push eax
call fcn.00424b26
push eax
lea esi, [esp + 0x60]
call fcn.00403a60
mov dword [esp + 0xf68], ebx
mov eax, dword [edi + 0x48]
mov edx, esi
mov dword [edi + 0x20], edx
movzx ecx, word [eax]
cmp cx, bx
je 0x4036cd
push eax
cmp cx, 0x22
jne 0x4036b3
lea ecx, [esp + 0x1c]
call fcn.00403960
mov byte [esp + 0xf68], 1
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004037a0
lea edi, [esp + 0x14]
mov byte [esp + 0xf68], 2
call fcn.00403740
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403666
mov edx, edi
push edx
lea ecx, [esp + 0xd4]
call fcn.004028f0
lea eax, [esi - 0x10]
mov byte [esp + 0xf68], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40368a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xf68], bl
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 0x4036cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4036cd
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4036cd
mov ecx, dword [edi + 0x48]
push ecx
lea ecx, [esp + 0xd4]
call fcn.00403400
lea ecx, [esp + 0x5c]
call fcn.0041e62e
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0xf6c], 0xffffffff
call fcn.00403f00
jmp 0x4036f9
push ebx
push ebx
push 0x464bd8
call fcn.00420fb2
xor eax, eax
mov ecx, dword [esp + 0xf60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret