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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e8d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x194]
push edi
mov dword [ebp - 0x10], esp
push 0
mov eax, dword [eax + 0x1c]
push 0
push 0x1042
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
call esi
mov edi, eax
mov eax, dword [ebx + 0x194]
push 0
push 0
mov ecx, dword [eax + 0x1c]
push 0x1032
push ecx
call esi
cmp eax, 1
jbe 0x46d533
mov edx, dword [0x6fdacc]
mov eax, dword [0x6fdad0]
mov ecx, dword [ebx + 0x1c]
push 0
push edx
push eax
push ecx
call fcn.00457010
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x46d522
mov eax, dword [ebx + 0x194]
mov dword [ebp - 0x60], edi
xor edi, edi
lea edx, [ebp - 0x64]
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x5c], edi
mov eax, dword [eax + 0x1c]
push edx
push edi
push 0x1005
push eax
call esi
cmp eax, edi
je 0x46d522
mov ecx, dword [ebx + 0x1cc]
mov eax, dword [ecx + 8]
dec eax
cmp edi, eax
jg 0x46d585
mov esi, dword [ecx + 4]
mov edx, edi
shl edx, 4
mov edx, dword [esi + edx]
mov esi, dword [ebp - 0x44]
cmp dword [edx + 0x4a0], esi
je 0x46d588
inc edi
jmp 0x46d568
or edi, 0xffffffff
mov eax, dword [0x6fcacc]
test eax, eax
je 0x46d5bf
mov eax, dword [ecx + 4]
mov esi, edi
shl esi, 4
mov eax, dword [eax + esi]
add eax, 0x54
mov ecx, dword [eax]
test ecx, ecx
jne 0x46d5a8
lea ecx, [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46d5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46d607
mov ecx, dword [ebx + 0x1cc]
shl edi, 4
mov edx, dword [ecx + 4]
mov esi, edi
mov eax, dword [edx + esi]
add eax, 0x54
mov ecx, dword [eax]
test ecx, ecx
jne 0x46d5dc
lea ecx, [eax + 4]
push 0
push ecx
call fcn.004a5e30
add esp, 8
test eax, eax
jne 0x46d7bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46d607
mov eax, dword [0x6fcacc]
test eax, eax
je 0x46d7bb
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x1c], di
mov eax, dword [ebx + 0x1cc]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 4]
mov esi, dword [ecx + esi]
cmp dword [esi + 0x8fc], 3
je 0x46d6aa
mov edx, dword [0x6fca90]
mov esi, dword [0x6fd1d0]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], edx
call fcn.00401070
cmp esi, edi
je 0x46d77e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46d77e
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
mov eax, dword [ebp - 0x14]
push eax
call edi
test eax, eax
mov dword [ebp - 0x18], eax
je 0x46d77e
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x46d785
mov edx, dword [ebp - 0x18]
push edx
push eax
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push esi
push 0
push eax
call edi
mov dword [ebp - 0x18], eax
jmp 0x46d77e
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x46d6b5
mov esi, eax
jmp 0x46d6b8
add esi, 0x58
mov edi, dword [0x6fdcf4]
test edi, edi
je 0x46d77e
test esi, esi
je 0x46d77e
push esi
lea ecx, [ebp - 0x3c]
call fcn.00401ee0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x28], ax
push eax
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004027e0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x20], edx
je 0x46d766
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x46d788
lea eax, [ebp - 0x1c]
mov edx, dword [0x6fdcf0]
push 0x30
push edx
push eax
mov eax, dword [ebx + 0x1c]
push eax
call fcn.00457200
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xa0]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x1cc]
mov dword [ebp - 0xa0], 0x3c
mov dword [ebp - 0x9c], 0x40
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi]
add eax, 0x54
mov ecx, dword [eax]
test ecx, ecx
jne 0x46d7f6
lea ecx, [eax + 4]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x90], ecx
push eax
mov dword [ebp - 0x84], 1
call dword [0x6fc2d0]
test eax, eax
jne 0x46d522
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x46d522
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xdc]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x1cc]
mov dword [ebp - 0xdc], 0x3c
mov dword [ebp - 0xd8], 0x40
mov edx, dword [ecx + 4]
mov esi, dword [edx + esi]
add esi, 0x54
mov eax, dword [esi]
test eax, eax
jne 0x46d863
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402850
mov ecx, dword [ebp - 0x14]
add esp, 8
push 0x3f
push ecx
call fcn.00609c00
add esp, 8
test eax, eax
jne 0x46d8a2
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xdc]
push eax
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xc0], 1
call dword [0x6fc2cc]
lea ecx, [ebp - 0x14]
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret