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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x684bd7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa8], edi
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x5c]
mov edx, dword [ebx + 8]
mov dword [ebp - 0xd8], eax
call fcn.0045f8c0
mov dword [ebp - 0xd4], eax
lea ecx, [edi + 0x2b8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [edi + 4]
push ecx
lea eax, [ebp - 0x8c]
push eax
call fcn.0046da90
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 1
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov dword [ebp - 0xd0], ecx
cmp eax, 1
jb 0x465aa6
lea eax, [ecx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x465a7e
mov edi, dword [esi]
push 2
lea eax, [edi + ecx*2]
push 0x7260f0
push eax
call fcn.004a2330
mov eax, dword [ebp - 0xd0]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2 + 2], cx
mov edi, dword [ebp - 0xa8]
jmp 0x465ac5
push 1
push 0x7260f0
mov byte [ebp - 0xa8], 0
mov ecx, esi
push dword [ebp - 0xa8]
push 1
call fcn.0044f970
mov esi, eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push dword [ebp - 0xd4]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00456820
add esp, 0xc
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x465b4f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465b45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466055
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x465ba4
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465b9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46605a
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x465bf9
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465bef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46605f
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x60], 8
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
mov dword [ebp - 0x48], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x466034
test al, 0x10
je 0x466034
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
push 0x7260f0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004568a0
add esp, 0xc
mov byte [ebp - 4], 8
lea edx, [edi + 0x34]
cmp dword [edi + 0x48], 8
jb 0x465c77
mov edx, dword [edi + 0x34]
push dword [edi + 0x44]
mov ecx, eax
push edx
call fcn.0044f170
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004cea90
add esp, 8
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.00469410
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x465d17
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465d0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466064
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x465d69
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465d5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466069
push edx
push ecx
call fcn.0048af59
add esp, 8
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
lea edx, [ebp - 0xcc]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb4]
call fcn.004775a0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
push 0x7260f0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004568a0
add esp, 0xc
mov byte [ebp - 4], 0xc
lea edx, [edi + 0x1c]
cmp dword [edi + 0x30], 8
jb 0x465de6
mov edx, dword [edi + 0x1c]
push dword [edi + 0x2c]
mov ecx, eax
push edx
call fcn.0044f170
mov dword [ebp - 0x34], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004cea90
mov byte [ebp - 4], 0xc
add esp, 8
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x465e78
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465e6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46606e
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x465ed0
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465ec6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466073
push edx
push ecx
call fcn.0048af59
add esp, 8
mov esi, dword [ebp - 0xd8]
lea eax, [ebp - 0xc0]
push eax
lea ecx, [esi + 0x18]
call fcn.0046c1b0
lea eax, [ebp - 0xcc]
push eax
lea ecx, [esi + 0x24]
call fcn.0046c1b0
mov ecx, dword [ebp - 0xc0]
test ecx, ecx
je 0x465f4c
mov edx, dword [ebp - 0xb8]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x465f24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466078
push edx
push ecx
call fcn.0048af59
add esp, 8
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
je 0x465f86
mov edx, dword [ebp - 0xc4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x465f7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46607d
push edx
push ecx
call fcn.0048af59
add esp, 8
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x465fde
mov edx, dword [ebp - 0xac]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x465fb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466082
push edx
push ecx
call fcn.0048af59
add esp, 8
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x466014
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46600a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466087
push edx
push ecx
call fcn.0048af59
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048b49a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.Cannot_find_certificate
lea ecx, [ebp - 0xcc]
call fcn.0044c070
push 0x73d15c
lea eax, [ebp - 0xcc]
push eax
call fcn.004a18e8
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
int3