Function at 0x439990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b810e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
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 edi, edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push edi
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 0x439a48
push 0x4d17f0
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x439a40
push 0x55cb5c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x439a48
mov dword [0x55cb5c], edi
jmp 0x439a55
mov ebx, str.qingnse64.dll
cmp dword [0x55cb5c], edi
jne 0x439a5a
mov ebx, str.qingnse.dll
xor edx, edx
mov esi, 7
lea eax, [ebp - 0x218]
mov word [ebp - 0x250], dx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439a80
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.00405660
push 0x4c7780
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x2c0]
push edx
mov dword [ebp - 4], edi
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 0x439aee
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], esi
mov dword [ebp - 0x2b0], edi
mov word [ebp - 0x2c0], dx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], ebx
jb 0x439b1e
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], esi
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], cx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439b51
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00405660
push str._nsemenu.dll
lea ecx, [ebp - 0x234]
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 - 0x220], ebx
jb 0x439bad
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], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439be0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.00405660
push str._nsemenu64.dll
lea ecx, [ebp - 0x250]
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 - 0x23c], ebx
jb 0x439c3b
mov eax, dword [ebp - 0x250]
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 - 0x23c], esi
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x290], ebx
jae 0x439c64
lea eax, [ebp - 0x2a4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x439e9a
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], ebx
jae 0x439c89
lea eax, [ebp - 0x26c]
push eax
call esi
test eax, eax
je 0x439e9a
push 0xb
xor edx, edx
push str.lightweight
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
call fcn.00405660
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
push esi
mov byte [ebp - 4], 0xb
call fcn.00438eb0
add esp, 0x10
mov dword [ebp - 0x2c4], eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x220], ebx
jb 0x439cff
mov edx, dword [ebp - 0x234]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x2c4], edi
je 0x439d86
cmp dword [ebp - 0x274], ebx
jb 0x439d1e
mov eax, dword [ebp - 0x288]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], edi
mov word [ebp - 0x288], cx
cmp dword [ebp - 0x258], ebx
jb 0x439d4f
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], esi
mov dword [ebp - 0x25c], edi
mov word [ebp - 0x26c], ax
cmp dword [ebp - 0x290], ebx
jb 0x439d7b
mov ecx, dword [ebp - 0x2a4]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x2c4]
jmp 0x439f13
push 0x4d1fbc
lea ecx, [ebp - 0x2c0]
call fcn.00405cd0
push edi
lea edx, [ebp - 0x2c0]
push edx
lea eax, [ebp - 0x26c]
push eax
push esi
mov byte [ebp - 4], 0xc
call fcn.00438eb0
add esp, 0x10
mov dword [ebp - 0x2c4], eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x2ac], ebx
jb 0x439dd3
mov ecx, dword [ebp - 0x2c0]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x2c4], edi
je 0x439e07
lea ecx, [ebp - 0x288]
call fcn.004a9f30
lea ecx, [ebp - 0x26c]
call fcn.004a9f30
lea ecx, [ebp - 0x2a4]
call fcn.004a9f30
mov eax, dword [ebp - 0x2c4]
jmp 0x439f13
call fcn.00433f30
test eax, eax
je 0x439e75
push 0x4d1fbc
lea ecx, [ebp - 0x234]
call fcn.00405cd0
push edi
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x288]
push eax
push esi
mov byte [ebp - 4], 0xd
call fcn.00438eb0
add esp, 0x10
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.004a9f30
cmp esi, edi
je 0x439e75
lea ecx, [ebp - 0x288]
call fcn.004a9f30
lea ecx, [ebp - 0x26c]
call fcn.004a9f30
lea ecx, [ebp - 0x2a4]
call fcn.004a9f30
mov eax, esi
jmp 0x439f13
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 0x439f13
cmp dword [ebp - 0x274], ebx
jb 0x439eb1
mov ecx, dword [ebp - 0x288]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], edi
mov word [ebp - 0x288], dx
cmp dword [ebp - 0x258], ebx
jb 0x439ee2
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], esi
mov dword [ebp - 0x25c], edi
mov word [ebp - 0x26c], cx
cmp dword [ebp - 0x290], ebx
jb 0x439f0e
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