Function at 0x10005120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1007de8e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x10099060]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10099060]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd8]
mov ecx, ebp
call fcn.10003530
xor ebx, ebx
cmp ebp, ebx
je 0x1000551f
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
push 0x10083f7c
mov dword [esp + 0x54], ecx
call fcn.100029f0
add esp, 4
test al, al
je 0x10005527
and dword [esp + 0x5c], 0xfffffe00
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
push ebp
mov dword [esp + 0xd0], 1
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x34]
call fcn.10007820
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0xd4], 2
call fcn.100013e0
mov byte [esp + 0xd4], 3
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x2c], esp
jb 0x10005217
mov eax, dword [eax + 4]
jmp 0x1000521a
add eax, 4
push eax
call fcn.10043f17
add esp, 4
mov dword [esi], eax
push str.bl_name
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x100841c3
mov byte [esp + 0xec], 4
call fcn.1004535c
mov edi, eax
mov byte [esp + 0xe4], 3
call fcn.10044719
cmp dword [esp + 0x9c], 0x10
jb 0x1000526a
mov edx, dword [esp + 0x88]
push edx
call fcn.1005f31a
add esp, 4
mov byte [esp + 0xcc], 1
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x1000529f
mov eax, dword [esp + 0x38]
push eax
call fcn.1005f31a
add esp, 4
mov eax, ebp
lea ecx, [esp + 0x34]
call fcn.10007820
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0xd4], 5
call fcn.100013e0
mov byte [esp + 0xd4], 6
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x2c], esp
jb 0x100052f7
mov eax, dword [eax + 4]
jmp 0x100052fa
add eax, 4
push eax
call fcn.10043f17
add esp, 4
mov dword [esi], eax
push str.bl_path
lea eax, [esp + 0x70]
push eax
mov ecx, 0x100841cb
mov byte [esp + 0xec], 7
call fcn.1004535c
mov edi, eax
mov byte [esp + 0xe4], 6
call fcn.10044719
cmp dword [esp + 0x9c], 0x10
jb 0x1000534a
mov ecx, dword [esp + 0x88]
push ecx
call fcn.1005f31a
add esp, 4
mov byte [esp + 0xcc], 1
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x1000537f
mov edx, dword [esp + 0x38]
push edx
call fcn.1005f31a
add esp, 4
xor eax, eax
mov word [esp + 0x88], ax
mov eax, 0x1009f088
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100053a3
sub eax, edx
sar eax, 1
push eax
mov eax, 0x1009f088
lea esi, [esp + 0x88]
call fcn.10009460
mov ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xd4], 8
call fcn.100013e0
mov byte [esp + 0xd4], 9
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x2c], esp
jb 0x1000540c
mov eax, dword [eax + 4]
jmp 0x1000540f
add eax, 4
push eax
call fcn.10043f17
add esp, 4
mov dword [esi], eax
push str.bl_proc
lea eax, [esp + 0x70]
push eax
mov ecx, 0x100841d3
mov byte [esp + 0xec], 0xa
call fcn.1004535c
mov edi, eax
mov byte [esp + 0xe4], 9
call fcn.10044719
cmp dword [esp + 0x30], 0x10
jb 0x10005459
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.1005f31a
add esp, 4
mov byte [esp + 0xcc], 1
cmp dword [esp + 0x9c], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x1000548b
mov edx, dword [esp + 0x88]
push edx
call fcn.1005f31a
add esp, 4
sub esp, 0x18
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [0x1009b24c], 0x10
mov eax, dword [0x1009b238]
mov dword [esp + 0x2c], esp
jae 0x100054bb
mov eax, 0x1009b238
mov edi, dword [0x1009b248]
push eax
call fcn.10043f17
add esp, 4
mov dword [esi], eax
push str.bl_hash4k
lea eax, [esp + 0x70]
push eax
mov ecx, 0x100841dd
mov byte [esp + 0xec], 0xb
call fcn.1004535c
mov edi, eax
mov byte [esp + 0xe4], 1
call fcn.10044719
push 1
push ebx
lea ecx, [esp + 0x5c]
push ecx
push str.t_bansendfile_log
call fcn.1004032e
lea esi, [esp + 0x54]
mov dword [esp + 0xcc], 0xffffffff
call fcn.10044696
jmp 0x10005527
mov dword [esp + 0x50], 1
and dword [esp + 0x74], 0xfffffe00
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0xcc], 0xd
xor edx, edx
mov eax, 0x1009f088
mov word [esp + 0x88], dx
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10005570
sub eax, edx
sar eax, 1
push eax
mov eax, 0x1009f088
lea esi, [esp + 0x88]
call fcn.10009460
mov eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0xd4], 0xe
call fcn.100013e0
mov byte [esp + 0xd4], 0xf
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x2c], esp
jb 0x100055d9
mov eax, dword [eax + 4]
jmp 0x100055dc
add eax, 4
push eax
call fcn.10043f17
add esp, 4
mov dword [esi], eax
push str.proc
lea edx, [esp + 0x88]
push edx
mov ecx, 0x100841f8
mov byte [esp + 0xec], 0x10
call fcn.1004535c
mov edi, eax
mov byte [esp + 0xe4], 0xf
call fcn.10044719
cmp dword [esp + 0x30], 0x10
jb 0x10005629
mov eax, dword [esp + 0x1c]
push eax
call fcn.1005f31a
add esp, 4
mov edi, 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x9c], edi
jb 0x10005657
mov ecx, dword [esp + 0x88]
push ecx
call fcn.1005f31a
add esp, 4
mov eax, 7
xor edx, edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], dx
mov byte [esp + 0xcc], 0x11
cmp dword [esp + 0x50], ebx
je 0x1000572c
mov esi, 0x100841fc
cmp dword [esp + 0xdc], ebx
jne 0x10005699
mov esi, 0x10083c60
lea eax, [esp + 0x34]
push eax
call fcn.1003b2d2
add esp, 4
mov byte [esp + 0xcc], 0x12
cmp dword [eax + 0x18], edi
jb 0x100056b8
mov eax, dword [eax + 4]
jmp 0x100056bb
add eax, 4
push eax
push 0x1009f088
push esi
push 0x10084208
lea esi, [esp + 0x28]
call fcn.1003c4c4
add esp, 0x10
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd4], 0x13
call fcn.10008590
cmp dword [esp + 0x30], edi
jb 0x100056fd
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.1005f31a
add esp, 4
xor edx, edx
mov byte [esp + 0xcc], 0x11
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
cmp dword [esp + 0x4c], edi
jb 0x100058f7
mov eax, dword [esp + 0x38]
push eax
jmp 0x100058ef
mov dword [esp + 0x9c], eax
xor ecx, ecx
mov eax, ebp
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10005750
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x88]
call fcn.10009460
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xd4], 0x14
call fcn.100013e0
mov byte [esp + 0xd4], 0x15
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x2c], esp
jb 0x100057b6
mov eax, dword [eax + 4]
jmp 0x100057b9
add eax, 4
push eax
call fcn.10043f17
add esp, 4
mov dword [esi], eax
push str.file
lea ecx, [esp + 0x88]
push ecx
mov ecx, 0x10083e04
mov byte [esp + 0xec], 0x16
call fcn.1004535c
mov edi, eax
mov byte [esp + 0xe4], 0x15
call fcn.10044719
cmp dword [esp + 0x30], 0x10
jb 0x10005806
mov edx, dword [esp + 0x1c]
push edx
call fcn.1005f31a
add esp, 4
mov byte [esp + 0xcc], 0x11
cmp dword [esp + 0x9c], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x10005838
mov eax, dword [esp + 0x88]
push eax
call fcn.1005f31a
add esp, 4
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, 0x10084254
test eax, eax
jne 0x1000584d
mov edi, 0x1008425c
mov esi, 0x100841fc
cmp dword [esp + 0xdc], ebx
jne 0x10005860
mov esi, 0x10083c60
lea ecx, [esp + 0x34]
push ecx
call fcn.1003b2d2
add esp, 4
mov byte [esp + 0xcc], 0x17
cmp dword [eax + 0x18], 8
jb 0x10005880
mov eax, dword [eax + 4]
jmp 0x10005883
add eax, 4
push eax
push 0x1009f088
push ebp
push edi
push esi
push 0x10084268
lea esi, [esp + 0x30]
call fcn.1003c4c4
add esp, 0x18
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd4], 0x18
call fcn.10008590
cmp dword [esp + 0x30], 8
jb 0x100058c8
mov edx, dword [esp + 0x1c]
push edx
call fcn.1005f31a
add esp, 4
xor eax, eax
mov byte [esp + 0xcc], 0x11
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
jb 0x100058f7
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1005f31a
add esp, 4
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.100013e0
mov byte [esp + 0xd4], 0x19
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x2c], esp
jb 0x1000593c
mov eax, dword [eax + 4]
jmp 0x1000593f
add eax, 4
push eax
call fcn.10043f17
add esp, 4
mov dword [esi], eax
push 0x10083c64
lea ecx, [esp + 0x88]
push ecx
mov ecx, 0x10083c67
mov byte [esp + 0xec], 0x1a
call fcn.1004535c
mov edi, eax
mov byte [esp + 0xe4], 0x19
call fcn.10044719
mov byte [esp + 0xcc], 0x11
cmp dword [esp + 0x4c], 0x10
jb 0x10005994
mov edx, dword [esp + 0x38]
push edx
call fcn.1005f31a
add esp, 4
push str.WeChat_Files
push ebp
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100059c1
cmp dword [esp + 0xd4], 3
jne 0x100059c1
push ebp
push str.ignore_notify:__s
call fcn.1003f500
add esp, 8
jmp 0x10005ac3
call fcn.1003ab67
push eax
push str.notifyMsg__08x
lea esi, [esp + 0x8c]
call fcn.1003c4c4
add esp, 8
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xd0], 0x1b
call fcn.10045a67
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0xd4], 0x1c
call fcn.10001360
mov ecx, 8
add esp, 8
cmp dword [eax + 0x18], ecx
jb 0x10005a16
mov eax, dword [eax + 4]
jmp 0x10005a19
add eax, 4
cmp dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x88]
jae 0x10005a30
lea ecx, [esp + 0x88]
push ebx
push eax
mov ebx, ecx
mov edi, str.Softwareprojonepodlp_bansendfile_
call fcn.1003c5e2
mov edi, 8
cmp dword [esp + 0x30], edi
jb 0x10005a56
mov edx, dword [esp + 0x1c]
push edx
call fcn.1005f31a
add esp, 4
xor ebx, ebx
xor eax, eax
cmp dword [esp + 0x4c], 0x10
mov esi, 7
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
jb 0x10005a80
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1005f31a
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x9c], edi
jb 0x10005aa9
mov edx, dword [esp + 0x88]
push edx
call fcn.1005f31a
add esp, 4
xor eax, eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
mov word [esp + 0x88], ax
xor ebx, ebx
cmp dword [esp + 0xb8], 8
jb 0x10005add
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.1005f31a
add esp, 4
xor edx, edx
lea esi, [esp + 0x6c]
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], dx
mov dword [esp + 0xcc], 0xffffffff
call fcn.10044696
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1005ebcb
add esp, 0xbc
ret 0xc