Function at 0x439420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b806e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x206
xor esi, esi
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
xor ecx, ecx
add esp, 8
mov word [eax], cx
cmp dword [0x55cb5c], 0xffffffff
jne 0x4394d8
push 0x4d17f0
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4394d0
push 0x55cb5c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x4394d8
mov dword [0x55cb5c], esi
jmp 0x4394e5
mov ebx, str.qingnse64.dll
cmp dword [0x55cb5c], esi
jne 0x4394ea
mov ebx, str.qingnse.dll
xor edx, edx
mov edi, 7
lea eax, [ebp - 0x218]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x439510
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00405660
push 0x4c7780
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x2c0]
push edx
mov dword [ebp - 4], esi
call fcn.0040ca00
push ebx
push eax
lea eax, [ebp - 0x2a4]
push eax
mov byte [ebp - 4], 1
call fcn.0040ca00
add esp, 0x18
mov ebx, 8
cmp dword [ebp - 0x2ac], ebx
jb 0x43957e
mov ecx, dword [ebp - 0x2c0]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2b0], esi
mov word [ebp - 0x2c0], dx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x220], ebx
jb 0x4395ae
mov eax, dword [ebp - 0x234]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x250], dx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], cx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4395e1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.00405660
push str._nsemenu.dll
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x26c]
push edx
mov byte [ebp - 4], 5
call fcn.0040ca00
add esp, 0xc
mov byte [ebp - 4], 7
cmp dword [ebp - 0x23c], ebx
jb 0x43963d
mov eax, dword [ebp - 0x250]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], cx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x439670
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00405660
push str._nsemenu64.dll
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x288]
push edx
mov byte [ebp - 4], bl
call fcn.0040ca00
add esp, 0xc
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x220], ebx
jb 0x4396cb
mov eax, dword [ebp - 0x234]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x2a4]
xor ecx, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x290], ebx
jae 0x4396f4
lea eax, [ebp - 0x2a4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x4398ed
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], ebx
jae 0x439719
lea eax, [ebp - 0x26c]
push eax
call edi
test eax, eax
je 0x4398ed
push 0xb
xor edx, edx
push str.fromdelmenu
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], dx
call fcn.00405660
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
push 1
mov byte [ebp - 4], 0xb
call fcn.00438eb0
add esp, 0x10
mov edi, eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x23c], ebx
jb 0x439789
mov edx, dword [ebp - 0x250]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, esi
je 0x43980b
cmp dword [ebp - 0x274], ebx
jb 0x4397a4
mov eax, dword [ebp - 0x288]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], esi
mov word [ebp - 0x288], cx
cmp dword [ebp - 0x258], ebx
jb 0x4397d4
mov edx, dword [ebp - 0x26c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], esi
mov word [ebp - 0x26c], ax
cmp dword [ebp - 0x290], ebx
jb 0x439804
mov ecx, dword [ebp - 0x2a4]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
jmp 0x439966
push 0x4d1fbc
lea ecx, [ebp - 0x2c0]
call fcn.00405cd0
push esi
lea edx, [ebp - 0x2c0]
push edx
lea eax, [ebp - 0x26c]
push eax
push 1
mov byte [ebp - 4], 0xc
call fcn.00438eb0
add esp, 0x10
mov edi, eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x2ac], ebx
jb 0x439855
mov ecx, dword [ebp - 0x2c0]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, esi
je 0x439881
lea ecx, [ebp - 0x288]
call fcn.004a9f30
lea ecx, [ebp - 0x26c]
call fcn.004a9f30
lea ecx, [ebp - 0x2a4]
call fcn.004a9f30
mov eax, edi
jmp 0x439966
call fcn.00433f30
test eax, eax
je 0x4398c8
push 0x4d1fbc
lea ecx, [ebp - 0x250]
call fcn.00405cd0
push esi
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x288]
push eax
push 1
mov byte [ebp - 4], 0xd
call fcn.00438eb0
add esp, 0x10
lea ecx, [ebp - 0x250]
mov edi, eax
call fcn.004a9f30
cmp edi, esi
jne 0x439859
lea ecx, [ebp - 0x288]
call fcn.004a9f30
lea ecx, [ebp - 0x26c]
call fcn.004a9f30
lea ecx, [ebp - 0x2a4]
call fcn.004a9f30
xor eax, eax
jmp 0x439966
cmp dword [ebp - 0x274], ebx
jb 0x439904
mov ecx, dword [ebp - 0x288]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], esi
mov word [ebp - 0x288], dx
cmp dword [ebp - 0x258], ebx
jb 0x439935
mov eax, dword [ebp - 0x26c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], esi
mov word [ebp - 0x26c], cx
cmp dword [ebp - 0x290], ebx
jb 0x439961
mov edx, dword [ebp - 0x2a4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0x80070002
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret